From 51c5b522b25d726b7c6ef3a1194efced78c44716 Mon Sep 17 00:00:00 2001 From: Josh Flatt Date: Sat, 22 Nov 2025 20:51:00 -0600 Subject: [PATCH] part 4 --- polls/templates/polls/detail.html | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/polls/templates/polls/detail.html b/polls/templates/polls/detail.html index 4e1bd67..0566bce 100644 --- a/polls/templates/polls/detail.html +++ b/polls/templates/polls/detail.html @@ -1,6 +1,12 @@ -

{{ question.question_text }}

- \ No newline at end of file +
+{% csrf_token %} +
+

{{ question.question_text }}

+ {% if error_message %}

{{ error_message }}

{% endif %} + {% for choice in question.choice_set.all %} + +
+ {% endfor %} +
+ +
\ No newline at end of file