4751 fix object reference

This commit is contained in:
Arthur 2022-11-11 13:18:56 -08:00
parent 0831714f16
commit d8f78df773
2 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

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