django: Moving on to tutorial 5.

I'm a moron.
This commit is contained in:
Kyle Isom 2018-05-06 22:19:21 -07:00
parent 99b8f06813
commit d7d7b195d8
2 changed files with 2 additions and 3 deletions

View File

@ -8,6 +8,5 @@
<input type="radio" name="choice" id="choice{{ forloop.counter }}" value="{{ choice.id }}" /> <input type="radio" name="choice" id="choice{{ forloop.counter }}" value="{{ choice.id }}" />
<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>

View File

@ -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'