blob: 6b6174cbcc401c3159b5a44a729dcb67162f7afb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
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):
return True
def allow_syncdb(self, db, model):
return True
|