mirror of
https://github.com/django/django.git
synced 2025-10-06 00:30:37 +00:00
Fixed #17678 -- Corrected setup of _meta.proxy_for_model and added _meta.concrete_model. Thanks Anssi Kääriäinen.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17573 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
3ac0961e1e
commit
354c84d277
7 changed files with 27 additions and 29 deletions
|
@ -40,7 +40,16 @@ class Options(object):
|
|||
self.abstract = False
|
||||
self.managed = True
|
||||
self.proxy = False
|
||||
# For any class which is a proxy (including automatically created
|
||||
# classes for deferred object loading) the proxy_for_model tells
|
||||
# which class this model is proxying. Note that proxy_for_model
|
||||
# can create a chain of proxy models. For non-proxy models the
|
||||
# variable is always None.
|
||||
self.proxy_for_model = None
|
||||
# For any non-abstract class the concrete class is the model
|
||||
# in the end of the proxy_for_model chain. In particular, for
|
||||
# concrete models the concrete_model is always the class itself.
|
||||
self.concrete_model = None
|
||||
self.parents = SortedDict()
|
||||
self.duplicate_targets = {}
|
||||
self.auto_created = False
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue