diff options
author | Sanmugasundaram K | 2015-01-07 19:18:22 +0530 |
---|---|---|
committer | Sanmugasundaram K | 2015-01-07 19:24:11 +0530 |
commit | 2ae49074f030b61088317526b023b9e21124dbfc (patch) | |
tree | 957f0138c0f2a96fd2c818a7035d2bbd48d3400c /spoken_auth/routers.py | |
parent | 9a5a239295e7aae2d211c07c9fdb117cf8252e99 (diff) | |
download | spoken-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.py | 4 |
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): |