Enable panel inheritance; add location panel

This commit is contained in:
Jeremy Stretch
2025-10-30 16:25:42 -04:00
parent 83de784196
commit 2a629d6f74
4 changed files with 37 additions and 51 deletions

View File

@@ -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,