Opened 8 years ago

Closed 8 years ago

Last modified 8 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: UI/UX:

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 8 years ago.
git-patch against the latest checkout

Download all attachments as: .zip

Change History (5)

Changed 8 years ago by Thejaswi Puthraya

Attachment: 9959.diff added

git-patch against the latest checkout

comment:1 Changed 8 years ago by Thejaswi Puthraya

Has patch: set
Triage Stage: UnreviewedAccepted

comment:2 Changed 8 years ago by Jacob

Resolution: fixed
Status: newclosed

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

comment:3 Changed 8 years ago by Jacob

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

comment:4 Changed 8 years ago by (none)

milestone: post-1.0

Milestone post-1.0 deleted

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