From eea01cd56975d9c23470fc59aba8c45eb3ffb807 Mon Sep 17 00:00:00 2001 From: Commander1024 Date: Sat, 10 Oct 2020 23:40:21 +0200 Subject: [PATCH] Translated Delete action via variable. --- .../lostplaces/templates/place/place_delete.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/django_lostplaces/lostplaces/templates/place/place_delete.html b/django_lostplaces/lostplaces/templates/place/place_delete.html index 909f6e9..ad99d9a 100644 --- a/django_lostplaces/lostplaces/templates/place/place_delete.html +++ b/django_lostplaces/lostplaces/templates/place/place_delete.html @@ -15,9 +15,9 @@

{% translate 'Are you sure you want to delete' %} "{{place.name}}"?

- + {% translate 'Delete' as action %}
- {% include 'partials/form/submit.html' with referer=request.META.HTTP_REFERER action='Delete' %} + {% include 'partials/form/submit.html' with referer=request.META.HTTP_REFERER action=action %}