class documentation

class ConnectionRouter:

View In Hierarchy

Undocumented

Method __init__ If routers is not specified, default to settings.DATABASE_ROUTERS.
Method ​_router​_func Undocumented
Method allow​_migrate Undocumented
Method allow​_migrate​_model Undocumented
Method allow​_relation Undocumented
Method get​_migratable​_models Return app models allowed to be migrated on provided db.
Class Variable db​_for​_read Undocumented
Class Variable db​_for​_write Undocumented
Instance Variable ​_routers Undocumented
Property routers Undocumented
def __init__(self, routers=None):
If routers is not specified, default to settings.DATABASE_ROUTERS.
def _router_func(action):

Undocumented

def allow_migrate(self, db, app_label, **hints):

Undocumented

def allow_migrate_model(self, db, model):

Undocumented

def allow_relation(self, obj1, obj2, **hints):

Undocumented

def get_migratable_models(self, app_config, db, include_auto_created=False):
Return app models allowed to be migrated on provided db.
db_for_read =

Undocumented

db_for_write =

Undocumented

_routers =

Undocumented

@cached_property
routers =

Undocumented