Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix #1172: bug in docs example code

  • Loading branch information...
commit fae72d02640c87058a1a9e61e29501121baaba47 1 parent 8cace6b
Rebecca Breu authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  docs/extending_cms/extending_examples.rst
View
2  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 }}" />
Please sign in to comment.
Something went wrong with that request. Please try again.