class documentation

class ConnectionRouter: (source)

View In Hierarchy

Undocumented

Method __init__ If routers is not specified, default to settings.DATABASE_ROUTERS.
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
Property routers Undocumented
Method _router_func Undocumented
Instance Variable _routers Undocumented
def __init__(self, routers=None): (source)

If routers is not specified, default to settings.DATABASE_ROUTERS.

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

Undocumented

def allow_migrate_model(self, db, model): (source)

Undocumented

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

Undocumented

def get_migratable_models(self, app_config, db, include_auto_created=False): (source)

Return app models allowed to be migrated on provided db.

db_for_read = (source)

Undocumented

db_for_write = (source)

Undocumented

Undocumented

def _router_func(action): (source)

Undocumented

_routers = (source)

Undocumented