mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-25 08:46:10 -06:00
4751 fix object reference
This commit is contained in:
parent
0831714f16
commit
d8f78df773
@ -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)
|
||||
|
@ -25,7 +25,7 @@ Context:
|
||||
{% block controls %}
|
||||
<div class="controls">
|
||||
<div class="control-group">
|
||||
{% plugin_list_buttons object %}
|
||||
{% plugin_list_buttons model %}
|
||||
|
||||
{% block extra_controls %}{% endblock %}
|
||||
{% if 'add' in actions %}
|
||||
|
Loading…
Reference in New Issue
Block a user