django: Moving on to tutorial 5.
I'm a moron.
This commit is contained in:
@@ -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'
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user