From 9028c2b903f2fdd2a1998231edec73111e0e6afd Mon Sep 17 00:00:00 2001 From: Damien Arnodo Date: Wed, 7 Jan 2026 18:36:53 +0000 Subject: [PATCH] chore: remove extra.py (config moved to plugins.py) --- extra.py | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 extra.py diff --git a/extra.py b/extra.py deleted file mode 100644 index b62563b..0000000 --- a/extra.py +++ /dev/null @@ -1,20 +0,0 @@ -# ============================================================================= -# NetBox Extra Configuration for netbox-branching -# ============================================================================= -# This file is loaded AFTER configuration.py and wraps DATABASES with -# DynamicSchemaDict as required by netbox-branching plugin. -# Mount this file to /etc/netbox/config/extra.py -# ============================================================================= - -from netbox_branching.utilities import DynamicSchemaDict - -# Wrap the existing DATABASES dict with DynamicSchemaDict -# DATABASES is already defined in configuration.py from the base image -DATABASES = DynamicSchemaDict({ - 'default': DATABASES['default'], -}) - -# Database router for branch-aware queries -DATABASE_ROUTERS = [ - 'netbox_branching.database.BranchAwareRouter', -]