Browse Source

fix: altera import de JsonField

bump_django
LeandroJatai 5 months ago
parent
commit
cfffee757b
  1. 2
      drfautoapi/drfautoapi.py
  2. 2
      sapl/base/models.py

2
drfautoapi/drfautoapi.py

@ -7,10 +7,10 @@ import re
from django.apps.config import AppConfig from django.apps.config import AppConfig
from django.apps.registry import apps from django.apps.registry import apps
from django.conf import settings from django.conf import settings
from django.contrib.postgres.fields.jsonb import JSONField
from django.db.models.base import ModelBase from django.db.models.base import ModelBase
from django.db.models.fields import TextField, CharField from django.db.models.fields import TextField, CharField
from django.db.models.fields.files import FileField from django.db.models.fields.files import FileField
from django.db.models.fields.json import JSONField
from django.template.defaultfilters import capfirst from django.template.defaultfilters import capfirst
from django.utils.translation import gettext_lazy as _ from django.utils.translation import gettext_lazy as _
import django_filters import django_filters

2
sapl/base/models.py

@ -1,10 +1,10 @@
from django.contrib.contenttypes.fields import GenericForeignKey from django.contrib.contenttypes.fields import GenericForeignKey
from django.contrib.contenttypes.models import ContentType from django.contrib.contenttypes.models import ContentType
from django.contrib.postgres.fields.jsonb import JSONField
from django.core.cache import cache from django.core.cache import cache
from django.core.serializers.json import DjangoJSONEncoder from django.core.serializers.json import DjangoJSONEncoder
from django.db import models from django.db import models
from django.db.models.deletion import CASCADE 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.models.signals import post_migrate
from django.db.utils import DEFAULT_DB_ALIAS from django.db.utils import DEFAULT_DB_ALIAS
from django.utils.translation import gettext_lazy as _ from django.utils.translation import gettext_lazy as _

Loading…
Cancel
Save