From 5f1fed991baf038c19a3f7ba126b4ca7c4801c54 Mon Sep 17 00:00:00 2001 From: Tom Hubrecht Date: Sun, 20 Dec 2020 09:43:17 +0100 Subject: [PATCH] Unify post in forms templates --- elections/templates/elections/election_admin.html | 4 ++-- elections/templates/elections/option_update.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/elections/templates/elections/election_admin.html b/elections/templates/elections/election_admin.html index e33db01..8a2acac 100644 --- a/elections/templates/elections/election_admin.html +++ b/elections/templates/elections/election_admin.html @@ -132,7 +132,7 @@ {# Rajout d'une option #} {% if election.start_date > current_time %} -
+
{% csrf_token %} @@ -155,7 +155,7 @@ {% if election.start_date > current_time %}
- + {% csrf_token %}
diff --git a/elections/templates/elections/option_update.html b/elections/templates/elections/option_update.html index 92f44aa..0ade8f4 100644 --- a/elections/templates/elections/option_update.html +++ b/elections/templates/elections/option_update.html @@ -13,7 +13,7 @@

{% trans "Modification d'une option" %}


- + {% csrf_token %} {% include "elections/forms/form.html" with errors=False %}