Skip to content

Commit

Permalink
fix(generic): show verbose name instead of contenttype name in list view
Browse files Browse the repository at this point in the history
Closes: #1246
  • Loading branch information
b1rger committed Oct 2, 2024
1 parent 9376df7 commit 3232ea6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apis_core/generic/templates/generic/generic_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<div class="card">
<div class="card-header">
<div class="row">
<div class="col">{{ object_list.model|contenttype }}</div>
<div class="col">{{ object_list.model|contenttype|model_meta:"verbose_name_plural"|title }}</div>
<div class="col">
{% if object_list.model.get_add_permission in perms %}
<a class="btn btn-outline-success float-right btn-sm"
Expand Down

0 comments on commit 3232ea6

Please sign in to comment.