Browse Source

Move legacy router to legacy app

pull/6/head
Marcio Mazza 10 years ago
parent
commit
25bdbdd05d
  1. 2
      legacy/router.py
  2. 3
      sapl/settings.py

2
sapl/legacyrouter.py → 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

3
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/

Loading…
Cancel
Save