parent
99b8f06813
commit
d7d7b195d8
|
@ -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'
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue