From c4389bb9cd0153c4315212bf16613404d7ee6e22 Mon Sep 17 00:00:00 2001 From: klmp200 Date: Wed, 7 Jun 2017 17:33:46 +0200 Subject: [PATCH] Add a way for admin to delete elections and add archive system --- core/templates/core/user_tools.jinja | 1 + election/migrations/0002_election_archived.py | 19 ++++ election/models.py | 1 + .../templates/election/election_detail.jinja | 3 + election/urls.py | 4 + election/views.py | 37 +++++- locale/fr/LC_MESSAGES/django.po | 107 +++++++++--------- 7 files changed, 119 insertions(+), 53 deletions(-) create mode 100644 election/migrations/0002_election_archived.py diff --git a/core/templates/core/user_tools.jinja b/core/templates/core/user_tools.jinja index f23cf6dd..1074e64e 100644 --- a/core/templates/core/user_tools.jinja +++ b/core/templates/core/user_tools.jinja @@ -103,6 +103,7 @@

{% trans %}Elections{% endtrans %}