membershipworks: Allow migrations for membershipworks database
This commit is contained in:
parent
bfefa840ea
commit
365efdacf7
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user