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 return None
def allow_migrate(self, db, model): def allow_migrate(self, db, model):
if model._meta.app_label == 'legacy': if model._meta.app_label in ['legacy', 'pglegacy']:
return False return False
return None return None

3
sapl/settings.py

@ -41,6 +41,7 @@ INSTALLED_APPS = (
# legacy reversed model definitions (temporary) # legacy reversed model definitions (temporary)
'legacy', 'legacy',
'pglegacy', 'pglegacy',
'base', 'base',
# sapl modules # sapl modules
@ -110,7 +111,7 @@ DATABASES = {
} }
} }
DATABASE_ROUTERS = ['sapl.legacyrouter.LegacyRouter', ] DATABASE_ROUTERS = ['legacy.router.LegacyRouter', ]
# Internationalization # Internationalization
# https://docs.djangoproject.com/en/1.8/topics/i18n/ # https://docs.djangoproject.com/en/1.8/topics/i18n/

Loading…
Cancel
Save