Add location topology button

This commit is contained in:
dreng
2023-05-14 22:25:42 +02:00
parent fe83a62615
commit f23f127d3b
2 changed files with 10 additions and 1 deletions
+6 -1
View File
@@ -11,5 +11,10 @@ class SiteButtons(PluginTemplateExtension):
def buttons(self):
return self.render('netbox_topology_views/site_button.html')
class LocationButtons(PluginTemplateExtension):
model = 'dcim.location'
def buttons(self):
return self.render('netbox_topology_views/location_button.html')
template_extensions = [SiteButtons]
template_extensions = [SiteButtons, LocationButtons]