diff --git a/sapl/legacyrouter.py b/legacy/router.py similarity index 90% rename from sapl/legacyrouter.py rename to legacy/router.py index bf747bb91..62ae6c4d2 100644 --- a/sapl/legacyrouter.py +++ b/legacy/router.py @@ -16,6 +16,6 @@ class LegacyRouter(object): return None def allow_migrate(self, db, model): - if model._meta.app_label == 'legacy': + if model._meta.app_label in ['legacy', 'pglegacy']: return False return None diff --git a/sapl/settings.py b/sapl/settings.py index d9fbf3fb6..321b6d2b6 100644 --- a/sapl/settings.py +++ b/sapl/settings.py @@ -41,6 +41,7 @@ INSTALLED_APPS = ( # legacy reversed model definitions (temporary) 'legacy', 'pglegacy', + 'base', # sapl modules @@ -110,7 +111,7 @@ DATABASES = { } } -DATABASE_ROUTERS = ['sapl.legacyrouter.LegacyRouter', ] +DATABASE_ROUTERS = ['legacy.router.LegacyRouter', ] # Internationalization # https://docs.djangoproject.com/en/1.8/topics/i18n/