Skip to content

Commit

Permalink
Fix JSONField import (#1021)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkimbo authored Aug 12, 2020
1 parent 67a0492 commit bd553be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graphene_django/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ class MissingType(object):

try:
# JSONField is only available from Django 3.1
from django.contrib.fields import JSONField
from django.db.models import JSONField
except ImportError:
JSONField = MissingType

0 comments on commit bd553be

Please sign in to comment.