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