Temporarily allow all migrations to fake sync state
Some checks failed
Deploy Beta (NATIVE) / deploy (push) Failing after 19s

This commit is contained in:
vickytechkey 2026-08-21 11:30:17 +05:30
parent d9bf55b7da
commit 97747c1cc5

View file

@ -25,9 +25,4 @@ class DatabaseRouter:
return True return True
def allow_migrate(self, db, app_label, model_name=None, **hints): def allow_migrate(self, db, app_label, model_name=None, **hints):
if model_name: return True
target_db = self.db_for_read(None, **{'model_name': model_name})
if db == target_db:
return True
return False
return None