diff --git a/elections/templates/elections/election.html b/elections/templates/elections/election.html index d21845e..6f805b8 100644 --- a/elections/templates/elections/election.html +++ b/elections/templates/elections/election.html @@ -59,6 +59,11 @@ {{ election.end_date|date:"d/m/Y H:i" }} + + {# Créateurice de l'élection #} +
+ {% blocktrans with creator=election.created_by.full_name %}Créé par {{ creator }}{% endblocktrans %} +
{# Confirmation de vote #} diff --git a/elections/views.py b/elections/views.py index 17940b4..6857f26 100644 --- a/elections/views.py +++ b/elections/views.py @@ -418,6 +418,7 @@ class ElectionView(NotArchivedMixin, DetailView): return ( super() .get_queryset() + .select_related("created_by") .prefetch_related("questions__options", "questions__duels") )