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

fix router

parent 4fa8a309
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -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')