From d7d7b195d8275069fcbd07eeb47fc18566048532 Mon Sep 17 00:00:00 2001 From: Kyle Isom Date: Sun, 6 May 2018 22:19:21 -0700 Subject: [PATCH] django: Moving on to tutorial 5. I'm a moron. --- django/mysite/polls/templates/polls/detail.html | 3 +-- django/mysite/polls/views.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/django/mysite/polls/templates/polls/detail.html b/django/mysite/polls/templates/polls/detail.html index 63c4259..2f36854 100644 --- a/django/mysite/polls/templates/polls/detail.html +++ b/django/mysite/polls/templates/polls/detail.html @@ -8,6 +8,5 @@
{% endfor %} - - + \ No newline at end of file diff --git a/django/mysite/polls/views.py b/django/mysite/polls/views.py index 16f582c..4d43931 100644 --- a/django/mysite/polls/views.py +++ b/django/mysite/polls/views.py @@ -20,7 +20,7 @@ class DetailView(generic.DetailView): class ResultsView(generic.DetailView): - model = Choice + model = Question template_name = 'polls/results.html'