membershipworks: Allow migrations for membershipworks database

This commit is contained in:
Adam Goldsmith 2022-03-24 19:41:59 -04:00
parent bfefa840ea
commit 365efdacf7

View File

@ -13,8 +13,8 @@ class MembershipWorksRouter:
return None return None
def allow_migrate(self, db, app_label, model_name=None, **hints): def allow_migrate(self, db, app_label, model_name=None, **hints):
if db == self.db: if app_label == self.app_label:
return False return db == self.db
return None return None
def allow_relation(self, obj1, obj2, **hints): def allow_relation(self, obj1, obj2, **hints):