Fix Django 2.2 compatibility

This commit is contained in:
Alexandre Iooss 2022-12-26 00:13:53 +01:00
parent f12c0bbcfb
commit 28eb2cb949
3 changed files with 14 additions and 14 deletions

View file

@ -14,9 +14,9 @@ SPDX-License-Identifier: GPL-3.0-or-later
<h1>{% trans "Delete confirmation" %}</h1>
<form method="post">{% csrf_token %}
<p>
{% blocktranslate trimmed %}
{% blocktrans trimmed %}
Are you sure you want to delete <code>{{ object }}</code>?
{% endblocktranslate %}
{% endblocktrans %}
</p>
{{ form }}
<input type="submit" class="btn btn-danger" value="{% trans "Confirm" %}">

View file

@ -14,10 +14,10 @@ SPDX-License-Identifier: GPL-3.0-or-later
<h1>{% trans "Report confirmation" %}</h1>
<form method="post">{% csrf_token %}
<p>
{% blocktranslate trimmed %}
{% blocktrans trimmed %}
Are you sure you want to report <code>{{ object }}</code>?
This photo will no longer be public, and administrators will be notified.
{% endblocktranslate %}
{% endblocktrans %}
</p>
<input type="submit" class="btn btn-warning" value="{% trans "Confirm" %}">
</form>