Re: forms.CharField() remove text

2011-12-22 Thread Daniel Roseman
On Thursday, 22 December 2011 09:09:16 UTC, @timkofu wrote: > > Also, I just found out from here > https://docs.djangoproject.com/en/1.3/topics/forms/ that i can just: > > {{form.field_name}} > > which makes things even more flexible. > Don't forget that you will need to render the validation er

Re: forms.CharField() remove text

2011-12-22 Thread Timothy Makobu
Also, I just found out from here https://docs.djangoproject.com/en/1.3/topics/forms/ that i can just: {{form.field_name}} which makes things even more flexible. 2011/12/22 Timothy Makobu > Fantastic. Thanks Amao. > > > 2011/12/22 Branton Davis > >> AmaoZhao's answer is probably the best. Yo

Re: forms.CharField() remove text

2011-12-21 Thread Timothy Makobu
Fantastic. Thanks Amao. 2011/12/22 Branton Davis > AmaoZhao's answer is probably the best. You can also try: > > class PostForm(forms.Form): > post = forms.CharField(label='', help_text=None, max_length=160, > widget=forms.Textarea(attrs={'rows':3, "cols":70,})) > > The auto

Re: forms.CharField() remove text

2011-12-21 Thread Branton Davis
AmaoZhao's answer is probably the best. You can also try: class PostForm(forms.Form): post = forms.CharField(label='', help_text=None, max_length=160, widget=forms.Textarea(attrs={'rows':3, "cols":70,})) The auto_id parameter only controls whether label tags and id attributes

Re: forms.CharField() remove text

2011-12-21 Thread AmaoZhao
? 2011?12?22? 06:04, Timothy Makobu ??: ow do I get rid of the "Post: The template render the form is {{field.label}} and {{field}}, you only need to display {{filed}}, for example: {% for field in form %} {{field}} {% endfor %} Hope this can help you. -- You received this message becaus

forms.CharField() remove text

2011-12-21 Thread Timothy Makobu
Hi, I have this form: class PostForm(forms.Form): post = forms.CharField(label=None, help_text=None, max_length=160, widget=forms.Textarea(attrs={'rows':3, "cols":70,})) And the constructor looks like this: PostForm(auto_id=False) according to folks on the net, this should