Skip to main content

Django form widget form JSONField

Project description


Django form widget form JSONField


It look like this.

demo image


  • Install: pip install django-jsoneditor-widget
  • Settings:
        # some apps ....
        # other apps ...

Create model

from django.db import models
from django.contrib.postgres.fields import JSONField

class Book(models.Model):
    name = models.CharField(max_length=150)
    information = JSONField()

    def __str__(self):

Admin site settings

  • Use ModelAdmin

    from django.contrib import admin
    from jsoneditor.admin import JSONFieldModelAdmin
    from .models import Book
    , JSONFieldModelAdmin)
  • Use mixin

    from django.contrib import admin
    class BookModelAdmin(JSONFieldAdminMixin, admin.ModelAdmin):

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-jsoneditor-widget, version 1.1
Filename, size File type Python version Upload date Hashes
Filename, size django_jsoneditor_widget-1.1-py3-none-any.whl (482.8 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size django-jsoneditor-widget-1.1.tar.gz (1.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page