from django.contrib.postgres.fields import JSONField
from django.db import models
class IceCream(models.Model):
metadata = JSONField()
You can add the normal **options
if you wish.
! Note that you must put
'django.contrib.postgres'
inINSTALLED_APPS
in yoursettings.py