summaryrefslogtreecommitdiff
path: root/spoken_auth/routers.py
diff options
context:
space:
mode:
authorSanmugasundaram K2015-01-07 19:18:22 +0530
committerSanmugasundaram K2015-01-07 19:24:11 +0530
commit2ae49074f030b61088317526b023b9e21124dbfc (patch)
tree957f0138c0f2a96fd2c818a7035d2bbd48d3400c /spoken_auth/routers.py
parent9a5a239295e7aae2d211c07c9fdb117cf8252e99 (diff)
downloadspoken-tutorial-forums-2ae49074f030b61088317526b023b9e21124dbfc.tar.gz
spoken-tutorial-forums-2ae49074f030b61088317526b023b9e21124dbfc.tar.bz2
spoken-tutorial-forums-2ae49074f030b61088317526b023b9e21124dbfc.zip
drupal auth user id change to spoken auth user id in all old records
Diffstat (limited to 'spoken_auth/routers.py')
-rw-r--r--spoken_auth/routers.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/spoken_auth/routers.py b/spoken_auth/routers.py
index f2d759b..6b6174c 100644
--- a/spoken_auth/routers.py
+++ b/spoken_auth/routers.py
@@ -2,11 +2,15 @@ class DrupalAuthRouter(object):
def db_for_read(self, model, **hints):
if model._meta.app_label == 'spoken_auth':
return 'spoken'
+ if model._meta.app_label == 'migrate_spoken':
+ return 'cdeep'
return 'default'
def db_for_write(self, model, **hints):
if model._meta.app_label == 'spoken_auth':
return 'spoken'
+ if model._meta.app_label == 'migrate_spoken':
+ return 'cdeep'
return 'default'
def allow_relation(self, obj1, obj2, **hints):