On 11/17/05, Pedro Furtado <[EMAIL PROTECTED]> wrote:
> How can I get the verbose_name of the field?
>
> {{ field.verbose_name }} doesn't work. Checked the source and it seams
> FormField class and its widgets only provides the field_name.

You're correct: FormField classes have no knowledge of model objects.
All they know about is the basics for displaying a form. If you want
to pass the verbose_name of a model object, you'll need to create some
sort of custom data structure and pass it to your template.

Adrian

--
Adrian Holovaty
holovaty.com | djangoproject.com | chicagocrime.org

Reply via email to