blob: 299712acd87edcd7d2004616c027e7abcefb1233 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
class DrupalAuthRouter(object):
def db_for_read(self, model, **hints):
if model._meta.app_label == 'drupal_auth':
return 'spoken'
return 'default'
def db_for_write(self, model, **hints):
if model._meta.app_label == 'drupal_auth':
return 'spoken'
return 'default'
def allow_relation(self, obj1, obj2, **hints):
return True
def allow_syncdb(self, db, model):
return True
|