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 %}