Files
NetBox-FloorPlan2.0/netbox_floorplanner/__init__.py
T
MrBlakeandClaude Opus 5.5 6b47b0fd5b Fix CSRF failure when saving layout; rename plugin to NetBox-Floorplaner
Read the CSRF token from a rendered {% csrf_token %} instead of the
cookie, which may be HttpOnly or use a custom name. Set the plugin
author to Claude and bump the version to 0.1.1 (busts static cache).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 12:47:34 +01:00

27 lines
766 B
Python

from django.utils.translation import gettext_lazy as _
from netbox.plugins import PluginConfig
__version__ = '0.1.1'
class FloorPlannerConfig(PluginConfig):
name = 'netbox_floorplanner'
verbose_name = 'NetBox-Floorplaner'
description = _('Drag & drop floor plan designer for sites and locations')
version = __version__
author = 'Claude'
base_url = 'floorplanner'
min_version = '4.7.2'
default_settings = {
# Default dimensions (cm) for new floor plans
'default_width': 2000,
'default_depth': 1500,
'default_grid_size': 50,
# Rack footprint (cm) used when a rack has no outer dimensions
'default_rack_width': 60,
'default_rack_depth': 120,
}
config = FloorPlannerConfig