Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #1173 from rbreu/issues1172_docbug

Fix #1172: bug in docs example code
  • Loading branch information...
commit daec44388871201a7c2e187eec38e49b065d325d 2 parents 8cace6b + fae72d0
@ojii ojii 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.