From d8f78df7733124ffe405a7018c5f69089fba24ac Mon Sep 17 00:00:00 2001 From: Arthur Date: Fri, 11 Nov 2022 13:18:56 -0800 Subject: [PATCH] 4751 fix object reference --- netbox/extras/templatetags/plugins.py | 4 ++-- netbox/templates/generic/object_list.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/netbox/extras/templatetags/plugins.py b/netbox/extras/templatetags/plugins.py index eab9e2920..560d15e01 100644 --- a/netbox/extras/templatetags/plugins.py +++ b/netbox/extras/templatetags/plugins.py @@ -76,8 +76,8 @@ def plugin_full_width_page(context, obj): @register.simple_tag(takes_context=True) -def plugin_list_buttons(context, obj): +def plugin_list_buttons(context, model): """ Render all list buttons registered by plugins """ - return _get_registered_content(obj, 'list_buttons', context) + return _get_registered_content(model, 'list_buttons', context) diff --git a/netbox/templates/generic/object_list.html b/netbox/templates/generic/object_list.html index 721415758..98a09b0b0 100644 --- a/netbox/templates/generic/object_list.html +++ b/netbox/templates/generic/object_list.html @@ -25,7 +25,7 @@ Context: {% block controls %}
- {% plugin_list_buttons object %} + {% plugin_list_buttons model %} {% block extra_controls %}{% endblock %} {% if 'add' in actions %}