diff options
author | prathamesh | 2014-06-06 12:21:31 +0530 |
---|---|---|
committer | prathamesh | 2014-06-06 12:21:31 +0530 |
commit | 6ed7eb5a06d16a3a761f4c6c99b9fc78ed4027d5 (patch) | |
tree | 331c95e4cf51bdef56dda6a936273db1f0721f82 /testapp/myauthentication/router.py | |
parent | ba50e500a1da9266f9bee5bc38b69635637f6129 (diff) | |
download | online_test-6ed7eb5a06d16a3a761f4c6c99b9fc78ed4027d5.tar.gz online_test-6ed7eb5a06d16a3a761f4c6c99b9fc78ed4027d5.tar.bz2 online_test-6ed7eb5a06d16a3a761f4c6c99b9fc78ed4027d5.zip |
README file added to the authentication app.
Diffstat (limited to 'testapp/myauthentication/router.py')
-rw-r--r-- | testapp/myauthentication/router.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/testapp/myauthentication/router.py b/testapp/myauthentication/router.py index ffdf122..eeb4cdb 100644 --- a/testapp/myauthentication/router.py +++ b/testapp/myauthentication/router.py @@ -3,10 +3,10 @@ class MyDatabaseRouter(object): A router to manage database operations in the myauthentication app. """ def db_for_read(self, model, **hints): - """ - Point all read operations on myauthentication app to spoken - database. - """ - if model._meta.app_label == 'myauthentication': - return 'spoken' - return None + """ + Point all read operations on myauthentication app to spoken + database. + """ + if model._meta.app_label == 'myauthentication': + return 'spoken' + return None |