mirror of
https://github.com/jazzband/django-categories.git
synced 2026-05-14 10:33:12 +00:00
Add support for Django 3.1
In Django 3.1 the compatibility import of django.core.exceptions.FieldDoesNotExist in django.db.models.fields is removed. So we'd have to update the package by replacing: from django.db.models.fields import FieldDoesNotExist with from django.core.exceptions import FieldDoesNotExist
This commit is contained in:
parent
ec89796299
commit
833789891b
1 changed files with 2 additions and 1 deletions
|
|
@ -1,7 +1,8 @@
|
|||
"""
|
||||
These functions handle the adding of fields to other models
|
||||
"""
|
||||
from django.db.models import FieldDoesNotExist, ForeignKey, ManyToManyField, CASCADE
|
||||
from django.db.models import ForeignKey, ManyToManyField, CASCADE
|
||||
from django.core.exceptions import FieldDoesNotExist
|
||||
from . import fields
|
||||
# from settings import self._field_registry, self._model_registry
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
|
|
|||
Loading…
Reference in a new issue