Well that really solve the problem. Now I have a new question: if I want to reduce de amount of columns that the textarea has, how could I do it ? This is not as simple as the previous issue. Thanks in advance. Regards Ariel
On Mon, Apr 12, 2010 at 3:58 PM, bax...@gretschpages.com < mail.bax...@gmail.com> wrote: > There are several ways you can do it, but probably the most > straightforward is how django does it in the first place: > > {% for field in form %} > {% if field.is_hidden %} > {{ field }} > {% else %} > {% if field.errors %}{{ field.errors }}{% endif %} > <p > {% if field.errors %} class="error"{% endif %} > {% ifequal field.name "honeypot" %} style="display:none;"{% > endifequal %}> > {{ field.label_tag }} {{ field }} > </p> > {% endif %} > {% endfor %} > > Looping through the fields, and if the field is honeypot, setting > display:none > > That's all in django/contrib/comments/templates/comments/form.html > > > On Apr 12, 2:35 pm, Ariel <isaacr...@gmail.com> wrote: > > Hi everybody: > > > > I am implementing comments functionalities in my web application, I am > > making the documentation examples. > > I have customized my comment form exaxtly like the documentation: > > > > {% get_comment_form for document as form %} > > <form action="{% comment_form_target %}" method="post"> > > {{ form }} > > <tr> > > <td><input type="submit" name="preview" class="submit-post" > > value="Preview"></td> > > </tr> > > </form> > > > > But the thing is that a field that is suppossed to be hidden is > > visible and that is what I don't want, the field name is 'honeypot' > > This is a normal behavior ? > > Do anyone of you know how to make that field hidden again ??? > > Thanks in advance. > > Ariel > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.