django: Moving on to tutorial 5.
I'm a moron.
This commit is contained in:
@@ -9,5 +9,4 @@
|
|||||||
<label for="choice{{ forloop.counter }}">{{ choice.choice_text }}</label><br />
|
<label for="choice{{ forloop.counter }}">{{ choice.choice_text }}</label><br />
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
<input type="submit" value="Vote" />
|
<input type="submit" value="Vote" />
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
@@ -20,7 +20,7 @@ class DetailView(generic.DetailView):
|
|||||||
|
|
||||||
|
|
||||||
class ResultsView(generic.DetailView):
|
class ResultsView(generic.DetailView):
|
||||||
model = Choice
|
model = Question
|
||||||
template_name = 'polls/results.html'
|
template_name = 'polls/results.html'
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user