19 lines
420 B
Python
19 lines
420 B
Python
|
|
###########################
|
|
# netbox_branching settings
|
|
###########################
|
|
#
|
|
from netbox_branching.utilities import DynamicSchemaDict
|
|
from .configuration import DATABASE
|
|
|
|
# Wrap DATABASES with DynamicSchemaDict for dynamic schema support
|
|
DATABASES = DynamicSchemaDict({
|
|
'default': DATABASE,
|
|
})
|
|
|
|
# Employ our custom database router
|
|
DATABASE_ROUTERS = [
|
|
'netbox_branching.database.BranchAwareRouter',
|
|
]
|
|
|