summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Meyer <carl@oddbird.net>2014-09-12 15:45:08 -0600
committerCarl Meyer <carl@oddbird.net>2014-09-12 15:45:08 -0600
commitafa119918c5584e7ca169c80720fd11d8b3436d0 (patch)
treedfed74d760f18c48f43a9a5bb53dac8e24878e7e
parent5e32605ce9baebf07b741c9235ea6351d565ce10 (diff)
Fixed #23484 -- Add comment in AppConfigStub clarifying app name vs app label.
-rw-r--r--django/db/migrations/state.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/django/db/migrations/state.py b/django/db/migrations/state.py
index 1328b41b7b..c6386d2b9b 100644
--- a/django/db/migrations/state.py
+++ b/django/db/migrations/state.py
@@ -125,6 +125,9 @@ class AppConfigStub(AppConfig):
def __init__(self, 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)
def import_models(self, all_models):