Have you checked `form.email.label_tag`?
> > But this may looks ugly. Is there a way to load the label from
> > forms.py even if we are not using form.as_ ??
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to
One suggestion is to simply reference
YourFormName.fields['e_mail'].label in the code that renders the
template, then pass it as a variable to the template.
As an example, assuming e_mail is set up in YourFormName as below:
from django.shortcuts import render_to_response
form = YourFormName()
e
2 matches
Mail list logo