summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'python/tbc_www/router.py')
-rw-r--r--python/tbc_www/router.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/tbc_www/router.py b/python/tbc_www/router.py
index 7a512fd..bac2a30 100644
--- a/python/tbc_www/router.py
+++ b/python/tbc_www/router.py
@@ -23,8 +23,8 @@ class TBCRouter(object):
return True
return False
- def allow_migrate(self, db, model):
- if db == 'tbc' or model._meta.app_label == "tbc_www":
+ def allow_migrate(self, db, app_label, model_name=None, **hints):
+ if db == 'tbc' or app_label == "tbc_www":
return False # we're not using syncdb on our legacy database
else: # but all other models/databases are fine
return True