File tree Expand file tree Collapse file tree
netbox_custom_objects_tab Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33
44class NetBoxCustomObjectsTabConfig (PluginConfig ):
5- name = ' netbox_custom_objects_tab'
6- verbose_name = ' Custom Objects Tab'
5+ name = " netbox_custom_objects_tab"
6+ verbose_name = " Custom Objects Tab"
77 description = 'Adds a "Custom Objects" tab to NetBox object detail pages'
8- version = ' 1.0.0'
9- author = ' Jan Krupa'
10- author_email = ' jan.krupa@cesnet.cz'
11- base_url = ' custom-objects-tab'
12- min_version = ' 4.5.0'
13- max_version = ' 4.5.99'
8+ version = " 1.0.0"
9+ author = " Jan Krupa"
10+ author_email = " jan.krupa@cesnet.cz"
11+ base_url = " custom-objects-tab"
12+ min_version = " 4.5.0"
13+ max_version = " 4.5.99"
1414 default_settings = {
1515 # app_label.model_name strings, or app_label.* to include all models in an app.
16- ' models' : [
17- ' dcim.*' ,
18- ' ipam.*' ,
19- ' virtualization.*' ,
20- ' tenancy.*' ,
21- ' contacts.*' ,
16+ " models" : [
17+ " dcim.*" ,
18+ " ipam.*" ,
19+ " virtualization.*" ,
20+ " tenancy.*" ,
21+ " contacts.*" ,
2222 ],
2323 # Label shown on the tab; override in PLUGINS_CONFIG.
24- ' label' : ' Custom Objects' ,
24+ " label" : " Custom Objects" ,
2525 # Tab sort weight; lower values appear further left.
26- ' weight' : 2000 ,
26+ " weight" : 2000 ,
2727 }
2828
2929 def ready (self ):
3030 super ().ready ()
3131 from . import views
32+
3233 views .register_tabs ()
3334
3435
Original file line number Diff line number Diff line change 11# Tab URLs live under the parent model's namespace (e.g., /dcim/devices/<pk>/custom-objects/).
22# This plugin registers no pages of its own; urlpatterns must still exist for the plugin loader.
3- app_name = ' netbox_custom_objects_tab'
3+ app_name = " netbox_custom_objects_tab"
44urlpatterns = []
You can’t perform that action at this time.
0 commit comments