mirror of
https://github.com/django/django.git
synced 2025-08-20 18:51:09 +00:00
Made it possible to change an application's label in its configuration.
Fixed #21683.
This commit is contained in:
parent
5dfec4e23b
commit
c40209dcc0
8 changed files with 83 additions and 31 deletions
|
@ -76,9 +76,7 @@ class AppConfigStub(AppConfig):
|
|||
Stubs a Django AppConfig. Only provides a label and a dict of models.
|
||||
"""
|
||||
def __init__(self, label):
|
||||
self.label = label
|
||||
self.path = None
|
||||
super(AppConfigStub, self).__init__(None, None)
|
||||
super(AppConfigStub, self).__init__(label, None)
|
||||
|
||||
def import_models(self, all_models):
|
||||
self.models = all_models
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue