diff --git a/drfautoapi/drfautoapi.py b/drfautoapi/drfautoapi.py index be8debdfe..6af5e4580 100644 --- a/drfautoapi/drfautoapi.py +++ b/drfautoapi/drfautoapi.py @@ -7,10 +7,10 @@ import re from django.apps.config import AppConfig from django.apps.registry import apps from django.conf import settings -from django.contrib.postgres.fields.jsonb import JSONField from django.db.models.base import ModelBase from django.db.models.fields import TextField, CharField from django.db.models.fields.files import FileField +from django.db.models.fields.json import JSONField from django.template.defaultfilters import capfirst from django.utils.translation import gettext_lazy as _ import django_filters diff --git a/sapl/base/models.py b/sapl/base/models.py index 7f33a0623..076162f35 100644 --- a/sapl/base/models.py +++ b/sapl/base/models.py @@ -1,10 +1,10 @@ from django.contrib.contenttypes.fields import GenericForeignKey from django.contrib.contenttypes.models import ContentType -from django.contrib.postgres.fields.jsonb import JSONField from django.core.cache import cache from django.core.serializers.json import DjangoJSONEncoder from django.db import models from django.db.models.deletion import CASCADE +from django.db.models.fields.json import JSONField from django.db.models.signals import post_migrate from django.db.utils import DEFAULT_DB_ALIAS from django.utils.translation import gettext_lazy as _