Merge pull request #6953 from felixxm/import-FieldDoesNotExist

Fixed import of FieldDoesNotExist exception.
This commit is contained in:
Xavier Ordoquy 2019-09-29 08:53:20 +02:00 committed by GitHub
commit 0dac98d215
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,12 +16,11 @@ import traceback
from collections import OrderedDict
from collections.abc import Mapping
from django.core.exceptions import ImproperlyConfigured
from django.core.exceptions import FieldDoesNotExist, ImproperlyConfigured
from django.core.exceptions import ValidationError as DjangoValidationError
from django.db import models
from django.db.models import DurationField as ModelDurationField
from django.db.models.fields import Field as DjangoModelField
from django.db.models.fields import FieldDoesNotExist
from django.utils import timezone
from django.utils.functional import cached_property
from django.utils.translation import gettext_lazy as _