Django ExtraField

2012-02-24 Thread coded kid
Hi guys, How can I get rid of the field that's beside django comment textarea? (the field, if users fill the field[honeypot] the users comment will be marked as spam) I hope you get my point? Below is my code: comments/form.html {% if user.is_authenticated %} {% csrf_token %}

Re: Django ExtraField

2012-02-24 Thread Marcos Moyano
You can set a hidden input widget to the form field. Rgds, Marcos On Fri, Feb 24, 2012 at 11:26 AM, coded kid wrote: > Hi guys, How can I get rid of the field that's beside django comment > textarea? (the field, if users fill the field[honeypot] the users > comment will be marked as spam) I ho

Re: Django ExtraField

2012-02-24 Thread coded kid
Sorry, How will I set that? is it from the template? On Feb 24, 4:29 pm, Marcos Moyano wrote: > You can set a hidden input widget to the form field. > > Rgds, > Marcos > > > > > > > > > > On Fri, Feb 24, 2012 at 11:26 AM, coded kid wrote: > > Hi guys, How can I get rid of the field that's beside

Re: Django ExtraField

2012-02-25 Thread Carlos Leite
On Fri, Feb 24, 2012 at 2:14 PM, coded kid wrote: > Sorry, How will I set that? is it from the template? no, its a widget ... you have to set the widget on your form class Class MyForm(model / form) hide_field = forms.CharField(widget=forms.HiddenInput) -- You received this message because

Re: Django ExtraField

2012-02-27 Thread coded kid
So you mean I will override the template? Since I will be making the correction is the models. On Feb 25, 3:12 pm, Carlos Leite wrote: > On Fri, Feb 24, 2012 at 2:14 PM, coded kid wrote: > > Sorry, How will I set that? is it from the template? > > no, its a widget ... > > you have to set the wid

Re: Django ExtraField

2012-02-27 Thread Babatunde Akinyanmi
Hi coded, You can't get rid of that field and expect the comment framework to work right. Other posters have suggested that you use a hiddenField widget on your form class (you are using a custom comment model right?). If that's not going smoothly, then you should do it with CSS ie add a class sele