Fixed #23484 -- Add comment in AppConfigStub clarifying app name vs app label.

This commit is contained in:
Carl Meyer 2014-09-12 15:45:08 -06:00
parent 5e32605ce9
commit afa119918c
1 changed files with 3 additions and 0 deletions

View File

@ -125,6 +125,9 @@ class AppConfigStub(AppConfig):
def __init__(self, label): def __init__(self, label):
self.label = label self.label = label
# App-label and app-name are not the same thing, so technically passing
# in the label here is wrong. In practice, migrations don't care about
# the app name, but we need something unique, and the label works fine.
super(AppConfigStub, self).__init__(label, None) super(AppConfigStub, self).__init__(label, None)
def import_models(self, all_models): def import_models(self, all_models):