On Jul 11, 9:58 pm, "Sells, Fred" <[email protected]>
wrote:
> I would like to access the help_text attribute of my model fields when
> responding with XML like this
<snip>
>
> I'm nut using Django forms but responding to Flex with XML. There must
> be some way to access this information, but I've been through the docus
> and google with no luck.
>
> Does anyone know how to access the help_text of the fields, once I have
> the model instance object?
>
> Thanks,
>
> Fred.
MyModel._meta.get_field_by_name('fieldname')[0].help_text
Although I must say that the examples you give look like they would be
better as verbose_name, rather than help_text.
--
DR.
--
You received this message because you are subscribed to the Google Groups
"Django users" 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-users?hl=en.