You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi
As I am using the last Django version which has JSONField integrated, and it will be great if we add the support for it to prevent adding external library.
I will suggest the following change on jsonfield.py file :
if USE_JSONFIELD:
try:
from models import JSONField
DataField = JSONField
except ImportError as err:
try:
from jsonfield_compat import JSONField, register_app
DataField = JSONField
except ImportError as err:
try:
from django_mysql.models import JSONField
DataField = JSONField
except ImportError:
raise ImproperlyConfigured(
"You must either install django-jsonfield + "
"django-jsonfield-compat, or django-mysql as an "
"alternative, if you wish to use a JSONField on your "
"actions"
)
The text was updated successfully, but these errors were encountered:
Hi
As I am using the last Django version which has
JSONField
integrated, and it will be great if we add the support for it to prevent adding external library.I will suggest the following change on
jsonfield.py
file :The text was updated successfully, but these errors were encountered: