#9959: Documentation Comments Framework
---------------------------+------------------------------------------------
 Reporter:  msm            |       Owner:  nobody    
   Status:  new            |   Milestone:  post-1.0  
Component:  Documentation  |     Version:  1.0       
 Keywords:                 |       Stage:  Unreviewed
Has_patch:  0              |  
---------------------------+------------------------------------------------
 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>
 }}}

-- 
Ticket URL: <http://code.djangoproject.com/ticket/9959>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to