mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-26 09:16:10 -06:00
replaces generic object template with base template
This commit is contained in:
parent
fa268381cd
commit
e1e7f28366
@ -1,4 +1,4 @@
|
|||||||
{% extends 'generic/object.html' %}
|
{% extends base_template %}
|
||||||
{% load helpers %}
|
{% load helpers %}
|
||||||
|
|
||||||
{% block extra_controls %}
|
{% block extra_controls %}
|
||||||
|
@ -31,6 +31,11 @@ class ObjectContactsView(generic.ObjectChildrenView):
|
|||||||
assignment_count=count_related(ContactAssignment, 'contact')
|
assignment_count=count_related(ContactAssignment, 'contact')
|
||||||
).restrict(request.user, 'view').filter(assignments__object_id=parent.pk)
|
).restrict(request.user, 'view').filter(assignments__object_id=parent.pk)
|
||||||
|
|
||||||
|
def get_extra_context(self, request, instance):
|
||||||
|
return {
|
||||||
|
'base_template': f'{instance._meta.app_label}/{instance._meta.model_name}.html',
|
||||||
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
# Tenant groups
|
# Tenant groups
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user