parent
99b8f06813
commit
d7d7b195d8
|
@ -8,6 +8,5 @@
|
|||
<input type="radio" name="choice" id="choice{{ forloop.counter }}" value="{{ choice.id }}" />
|
||||
<label for="choice{{ forloop.counter }}">{{ choice.choice_text }}</label><br />
|
||||
{% endfor %}
|
||||
<input type="submit" value="Vote" />
|
||||
|
||||
<input type="submit" value="Vote" />
|
||||
</form>
|
|
@ -20,7 +20,7 @@ class DetailView(generic.DetailView):
|
|||
|
||||
|
||||
class ResultsView(generic.DetailView):
|
||||
model = Choice
|
||||
model = Question
|
||||
template_name = 'polls/results.html'
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue