Replace model_name and model_name_verbose filters with meta

This commit is contained in:
Jeremy Stretch
2020-03-09 10:50:46 -04:00
parent 16d3cebf3e
commit 15ab30d0c6
6 changed files with 9 additions and 16 deletions
+1 -1
View File
@@ -15,7 +15,7 @@
{% export_button content_type %}
{% endif %}
</div>
<h1>{% block title %}{{ content_type.model_class|model_name_plural|bettertitle }}{% endblock %}</h1>
<h1>{% block title %}{{ content_type.model_class|meta:"verbose_name_plural"|bettertitle }}{% endblock %}</h1>
<div class="row">
<div class="col-md-{% if filter_form %}9{% else %}12{% endif %}">
{% with bulk_edit_url=content_type.model_class|url_name:"bulk_edit" bulk_delete_url=content_type.model_class|url_name:"bulk_delete" %}