#9959 closed (fixed)
Documentation Comments Framework
| Reported by: | msm | Owned by: | nobody |
|---|---|---|---|
| Component: | Documentation | Version: | 1.0 |
| Severity: | Keywords: | ||
| Cc: | Triage Stage: | Accepted | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
Hello,
I think there's a small typo in http://docs.djangoproject.com/en/dev/ref/contrib/comments/#rendering-a-custom-comment-form
To really get a preview in the example the value of the name attribute of the input element should be changed:
from:
{% get_comment_form for event as form %}
<form action="{% comment_form_target %}" method="POST">
{{ form }}
<p class="submit">
<input type="submit" name="submit" class="submit-post" value="Preview">
</p>
</form>
to:
{% get_comment_form for event as form %}
<form action="{% comment_form_target %}" method="POST">
{{ form }}
<p class="submit">
<input type="submit" name="preview" class="submit-post" value="Preview">
</p>
</form>
Attachments (1)
Change History (5)
by , 17 years ago
comment:1 by , 17 years ago
| Has patch: | set |
|---|---|
| Triage Stage: | Unreviewed → Accepted |
comment:2 by , 17 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
comment:3 by , 17 years ago
Note:
See TracTickets
for help on using tickets.
git-patch against the latest checkout