mirror of
https://github.com/django/django.git
synced 2025-08-18 01:30:42 +00:00
Fixed #13827 -- Cleaned up a few unnecessary function calls.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@13876 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
d8d38ec6e7
commit
1df1378f9e
11 changed files with 16 additions and 20 deletions
|
@ -257,9 +257,8 @@ def deferred_class_factory(model, attrs):
|
|||
deferred attributes to a particular instance of the model.
|
||||
"""
|
||||
class Meta:
|
||||
pass
|
||||
setattr(Meta, "proxy", True)
|
||||
setattr(Meta, "app_label", model._meta.app_label)
|
||||
proxy = True
|
||||
app_label = model._meta.app_label
|
||||
|
||||
# The app_cache wants a unique name for each model, otherwise the new class
|
||||
# won't be created (we get an old one back). Therefore, we generate the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue