Django JSONField - a PostgreSQL specific field Creating a JSONField

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!


Available in Django 1.9+

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' in INSTALLED_APPS in your

Got any Django Question?