Don't migrate disallowed connections

This commit is contained in:
Peter Abrahamsen
2021-04-12 19:16:29 -07:00
parent 554dcfe8b0
commit 43ddf6dab6
+1 -1
View File
@@ -11,7 +11,7 @@ class CreateView(migrations.CreateModel):
if not self.allow_migrate_model( if not self.allow_migrate_model(
schema_editor.connection.alias, fake_model): schema_editor.connection.alias, fake_model):
raise return
model = self._get_model(fake_model, app_label, to_state) model = self._get_model(fake_model, app_label, to_state)