diff --git a/netbox/netbox/views/generic/object_views.py b/netbox/netbox/views/generic/object_views.py index 35726452205..0686e52b7df 100644 --- a/netbox/netbox/views/generic/object_views.py +++ b/netbox/netbox/views/generic/object_views.py @@ -146,10 +146,12 @@ def get(self, request, *args, **kwargs): return render(request, 'htmx/table.html', { 'object': instance, 'table': table, + 'model': self.child_model, }) return render(request, self.get_template_name(), { 'object': instance, + 'model': self.child_model, 'child_model': self.child_model, 'base_template': f'{instance._meta.app_label}/{instance._meta.model_name}.html', 'table': table,