diff options
author | Sanmugasundaram K | 2015-01-07 17:01:47 +0530 |
---|---|---|
committer | Sanmugasundaram K | 2015-01-07 17:01:47 +0530 |
commit | 9a5a239295e7aae2d211c07c9fdb117cf8252e99 (patch) | |
tree | 7a73a4b54d7d6e17b13dba45530d8903e1add635 /spoken_auth/routers.py | |
parent | b665812a483c9181aec47073223d950b5b04fa1e (diff) | |
download | FOSSEE-Forum-9a5a239295e7aae2d211c07c9fdb117cf8252e99.tar.gz FOSSEE-Forum-9a5a239295e7aae2d211c07c9fdb117cf8252e99.tar.bz2 FOSSEE-Forum-9a5a239295e7aae2d211c07c9fdb117cf8252e99.zip |
drupal_auth move to spoken_auth
Diffstat (limited to 'spoken_auth/routers.py')
-rw-r--r-- | spoken_auth/routers.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/spoken_auth/routers.py b/spoken_auth/routers.py new file mode 100644 index 0000000..f2d759b --- /dev/null +++ b/spoken_auth/routers.py @@ -0,0 +1,16 @@ +class DrupalAuthRouter(object): + def db_for_read(self, model, **hints): + if model._meta.app_label == 'spoken_auth': + return 'spoken' + return 'default' + + def db_for_write(self, model, **hints): + if model._meta.app_label == 'spoken_auth': + return 'spoken' + return 'default' + + def allow_relation(self, obj1, obj2, **hints): + return True + + def allow_syncdb(self, db, model): + return True |