Skip to content

Commit

Permalink
fix: Fixed "No records found" when 'has_add_permission' was False (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
HenrichHanusovsky committed Sep 6, 2022
1 parent bbd2fce commit 6936182
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/unfold/templates/admin/edit_inline/tabular.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ <h2 class="bg-gray-100 font-semibold mb-6 px-4 py-3 rounded-md text-gray-900 tex
{{ inline_admin_formset.formset.non_form_errors }}

<div>
{% if not inline_admin_formset.has_add_permission and inline_admin_formset|length == 0 %}
{% if not inline_admin_formset.has_add_permission and inline_admin_formset.forms|length_is:0 %}
<p class="mb-8 text-gray-500 text-sm">
{% trans "No records found." %}
</p>
Expand Down

0 comments on commit 6936182

Please sign in to comment.