mirror of
https://github.com/django/django.git
synced 2025-08-08 04:48:27 +00:00
Fixed #9104 -- Moved FieldDoesNotExist to core.exceptions
This commit is contained in:
parent
1aa3e09c20
commit
8958170755
22 changed files with 73 additions and 60 deletions
|
@ -10,6 +10,7 @@ from __future__ import unicode_literals
|
|||
from collections import namedtuple
|
||||
|
||||
from django.apps import apps
|
||||
from django.core.exceptions import FieldDoesNotExist
|
||||
from django.db.backends import utils
|
||||
from django.db.models.constants import LOOKUP_SEP
|
||||
from django.utils import six
|
||||
|
@ -99,7 +100,6 @@ class DeferredAttribute(object):
|
|||
Retrieves and caches the value from the datastore on the first lookup.
|
||||
Returns the cached value.
|
||||
"""
|
||||
from django.db.models.fields import FieldDoesNotExist
|
||||
non_deferred_model = instance._meta.proxy_for_model
|
||||
opts = non_deferred_model._meta
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue