mirror of
https://github.com/django/django.git
synced 2025-08-30 23:37:50 +00:00
parent
4ee06ec3fc
commit
a159b1facd
9 changed files with 140 additions and 162 deletions
|
@ -219,7 +219,7 @@ class ExecutorTests(MigrationTestBase):
|
|||
# exists in the global app registry temporarily.
|
||||
old_table_names = connection.introspection.table_names
|
||||
connection.introspection.table_names = lambda c: [x for x in old_table_names(c) if x != "auth_user"]
|
||||
migrations_apps = executor.loader.project_state(("migrations", "0001_initial")).render()
|
||||
migrations_apps = executor.loader.project_state(("migrations", "0001_initial")).apps
|
||||
global_apps.get_app_config("migrations").models["author"] = migrations_apps.get_model("migrations", "author")
|
||||
try:
|
||||
migration = executor.loader.get_migration("auth", "0001_initial")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue