Commit 2c1c2734 authored by Élie Bouttier's avatar Élie Bouttier

fix router

parent 4fa8a309
......@@ -14,6 +14,5 @@ class PonyAirRouter:
or (obj1._meta.app_label != 'ponyair' and obj2._meta.app_label != 'ponyair')
def allow_migrate(self, db, app_label, model_name=None, **hints):
if db == 'ponyair' and app_label == 'ponyair':
return True
return False
return (db == 'ponyair' and app_label == 'ponyair') \
or (db != 'ponyair' and app_label != 'ponyair')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment