> 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. Thanks; that's a life saver :) I don't intend to use these names as column names but as content of a column, used for debugging as much as anything else. I'm new to Django, so I had not thought of verbose name. I really had not anticipated using the help_text at all when I defined my models, but a situation came up where I needed to do a Name --- value ---- description type of table. is there an advantage of verbosename over helptext in my scenario? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.