Temporarily allow all migrations to fake sync state
Some checks failed
Deploy Beta (NATIVE) / deploy (push) Failing after 19s
Some checks failed
Deploy Beta (NATIVE) / deploy (push) Failing after 19s
This commit is contained in:
parent
d9bf55b7da
commit
97747c1cc5
1 changed files with 1 additions and 6 deletions
|
|
@ -25,9 +25,4 @@ class DatabaseRouter:
|
|||
return True
|
||||
|
||||
def allow_migrate(self, db, app_label, model_name=None, **hints):
|
||||
if model_name:
|
||||
target_db = self.db_for_read(None, **{'model_name': model_name})
|
||||
if db == target_db:
|
||||
return True
|
||||
return False
|
||||
return None
|
||||
|
|
|
|||
Loading…
Reference in a new issue