Repository URL to install this package:
|
Version:
0.1.9 ▾
|
from . import brand_settings
class BrandingRouter(object):
def db_for_read(self, model, **hints):
if model._meta.app_label == 'branding':
return brand_settings.BRAND_DB
def db_for_write(self, model, **hints):
if model._meta.app_label == 'branding':
return brand_settings.BRAND_DB