mirror of
https://github.com/netbox-community/netbox.git
synced 2026-01-15 00:02:17 -06:00
Enable panel inheritance; add location panel
This commit is contained in:
@@ -571,6 +571,7 @@ class LocationView(GetRelatedModelsMixin, generic.ObjectView):
|
||||
locations = instance.get_descendants(include_self=True)
|
||||
location_content_type = ContentType.objects.get_for_model(instance)
|
||||
return {
|
||||
'location_panel': panels.LocationPanel(instance, _('Location')),
|
||||
'related_models': self.get_related_models(
|
||||
request,
|
||||
locations,
|
||||
|
||||
Reference in New Issue
Block a user