MCPcopy
hub / github.com/django/django / JSONConstraintModel

Class JSONConstraintModel

tests/schema/tests.py:3036–3040  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3034 @isolate_apps("schema")
3035 def test_check_constraint_exact_jsonfield(self):
3036 class JSONConstraintModel(Model):
3037 data = JSONField()
3038
3039 class Meta:
3040 app_label = "schema"
3041
3042 with connection.schema_editor() as editor:
3043 editor.create_model(JSONConstraintModel)

Callers

nothing calls this directly

Calls 1

JSONFieldClass · 0.90

Tested by

no test coverage detected