Remove lowercase from creation form title

This commit is contained in:
Edgar P. Burkhart 2023-04-20 12:04:14 +02:00
parent df19c5586d
commit 45d12d0b07
Signed by: edpibu
GPG Key ID: 9833D3C5A25BD227
1 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@
{% load i18n %}
{% block title %}
{% if form.instance.adding %}
{% blocktranslate with name=form.instance|verbose_name|lower %}Create {{ name }}{% endblocktranslate %}
{% blocktranslate with name=form.instance|verbose_name %}Create {{ name }}{% endblocktranslate %}
{% else %}
{{ form.instance }}
{% endif %}
@ -25,7 +25,7 @@
{% block body %}
{% with instance=form.instance %}
{% if instance.adding %}
<h1>{% blocktranslate with name=instance|verbose_name|lower %}Create {{ name }}{% endblocktranslate %}</h1>
<h1>{% blocktranslate with name=instance|verbose_name %}Create {{ name }}{% endblocktranslate %}</h1>
{% else %}
<h1>
{% block h1 %}{{ instance }}{% endblock %}