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
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
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
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
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
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 %}
6 matches
Mail list logo