Skip to content

Commit bd553be

Browse files
authored
Fix JSONField import (#1021)
1 parent 67a0492 commit bd553be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graphene_django/compat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ class MissingType(object):
1616

1717
try:
1818
# JSONField is only available from Django 3.1
19-
from django.contrib.fields import JSONField
19+
from django.db.models import JSONField
2020
except ImportError:
2121
JSONField = MissingType

0 commit comments

Comments
 (0)