I know that FormField can be used for receiving input data. But create
a form in template is too tedious, because I need to write label for
every field myself, and I cann't auto create the label from a loop,
just like:

    {% for f in form.fields %}
    <p><label>{{ f.formfield.verbose_name }}</label>
        {{ f }}{% if f.errors %}<span class="errornote"> * {{
f.errors|join:", " }}</span>{% endif %}</p>
    {% endfor %}

Because formfield doesn't has a verbose_name property. So I want to
ask why there is no verbose_name in FormField __init__() function. I
think if there is verbose_name, so create a form code will be easier.

--
I like python!
My Blog: http://www.donews.net/limodou
NewEdit Maillist: http://groups.google.com/group/NewEdit

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-developers
-~----------~----~----~----~------~----~------~--~---

Reply via email to