Loading django/db/migrations/state.py +3 −0 Original line number Diff line number Diff line Loading @@ -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): Loading Loading
django/db/migrations/state.py +3 −0 Original line number Diff line number Diff line Loading @@ -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): Loading