From 3798bc1b1c332258f8230d6b27c66c2b30ffe860 Mon Sep 17 00:00:00 2001 From: Bruno Rocha Date: Wed, 6 Sep 2023 19:07:39 +0100 Subject: [PATCH] Update fields.py When setting JSONFIELD_CUSTOM the logic was importing under the wrong name with `Base` suffix raising `Import Error` as the module ended up having no `JSONField` to be imported. Looks like due toa recent change the JSONFieldBase` is no more needed. --- social_django/fields.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/social_django/fields.py b/social_django/fields.py index f03e1def..a9dd8e66 100644 --- a/social_django/fields.py +++ b/social_django/fields.py @@ -21,7 +21,7 @@ from django.utils.module_loading import import_string except ImportError: from importlib import import_module as import_string - JSONFieldBase = import_string(JSONFIELD_CUSTOM) + JSONField = import_string(JSONFIELD_CUSTOM) else: try: from django.db.models import JSONField