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