from django.db import models def default_data(): return {"key": "value"} class MyModel(models.Model): data = models.JSONField(default=default_data)