Skip to content

Commit cd43022

Browse files
authored
Maintain JSONField in graphene_django.compat module (#1429)
Fixes #1428 This should improve backwards compatibility, fixing issues in downstream packages (notably graphene-django-cud tOgg1/graphene-django-cud#109, and also graphene-django-extras, both of which depended on `graphene_django.compat.JSONField`). Co-authored-by: Steven DeMartini <[email protected]>
1 parent 3f061a0 commit cd43022

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

graphene_django/compat.py

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# For backwards compatibility, we import JSONField to have it available for import via
2+
# this compat module (https://github.com/graphql-python/graphene-django/issues/1428).
3+
# Django's JSONField is available in Django 3.2+ (the minimum version we support)
4+
from django.db.models import JSONField
5+
6+
17
class MissingType:
28
def __init__(self, *args, **kwargs):
39
pass

0 commit comments

Comments
 (0)