Simplify add/import/export button invocation

This commit is contained in:
jeremystretch
2022-03-10 15:56:09 -05:00
parent 23e1cb9c59
commit ccaedf2689
5 changed files with 28 additions and 22 deletions

View File

@@ -26,13 +26,13 @@ Context:
<div class="control-group">
{% block extra_controls %}{% endblock %}
{% if 'add' in actions %}
{% add_button model|validated_viewname:"add" %}
{% add_button model %}
{% endif %}
{% if 'import' in actions %}
{% import_button model|validated_viewname:"import" %}
{% import_button model %}
{% endif %}
{% if 'export' in actions %}
{% export_button model|content_type %}
{% export_button model %}
{% endif %}
</div>
</div>