Files
mrb-netbox-topology-views/netbox_topology_views/__init__.py
T
Victor Gorchilov 3671bbbc78 Fixes #276: Delete RoleImages when their DeviceRole is deleted (#279)
* [fix] get only valid role images

* [up] add post delete signals for device roles

* [fix] move signal registration in `apps.py`

* [fix] register signals in plugin config & filter valid role images

* [fix] undo role image filter as it is wrong and unnecessary

* [up] revert formatting with black
2023-04-20 20:55:58 +02:00

26 lines
659 B
Python

from extras.plugins import PluginConfig
class TopologyViewsConfig(PluginConfig):
name = "netbox_topology_views"
verbose_name = "Topology views"
description = "An plugin to render topology maps"
version = "3.3.0"
author = "Mattijs Vanhaverbeke"
author_email = "author@example.com"
base_url = "netbox_topology_views"
required_settings = []
default_settings = {
"static_image_directory": "netbox_topology_views/img",
"allow_coordinates_saving": False,
"always_save_coordinates": False,
}
def ready(self):
from . import signals
super().ready()
config = TopologyViewsConfig