Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#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)

9959.diff (554 bytes ) - added by Thejaswi Puthraya 16 years ago.
git-patch against the latest checkout

Download all attachments as: .zip

Change History (5)

by Thejaswi Puthraya, 16 years ago

Attachment: 9959.diff added

git-patch against the latest checkout

comment:1 by Thejaswi Puthraya, 16 years ago

Has patch: set
Triage Stage: UnreviewedAccepted

comment:2 by Jacob, 16 years ago

Resolution: fixed
Status: newclosed

(In [9731]) Fixed #9959: fixed comment documentation example showing how to get a preview.

comment:3 by Jacob, 16 years ago

(In [9738]) A handful of fixes to django.contrib.comments:

comment:4 by (none), 16 years ago

milestone: post-1.0

Milestone post-1.0 deleted

Note: See TracTickets for help on using tickets.
Back to Top