Permalink
Browse files

Fix #1172: bug in docs example code

  • Loading branch information...
1 parent 8cace6b commit fae72d02640c87058a1a9e61e29501121baaba47 Rebecca Breu committed Feb 16, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 docs/extending_cms/extending_examples.rst
@@ -112,7 +112,7 @@ The template could look like this:
<h1>{{ instance.poll.question }}</h1>
- <form action="{% url polls.views.vote poll.id %}" method="post">
+ <form action="{% url polls.views.vote instance.poll.id %}" method="post">
{% csrf_token %}
{% for choice in instance.poll.choice_set.all %}
<input type="radio" name="choice" id="choice{{ forloop.counter }}" value="{{ choice.id }}" />

0 comments on commit fae72d0

Please sign in to comment.