Rufman wrote: > do you by any chance know how the django admin page gets the help_text > from the model...e.i. how can i get the help_text without having to > define it again in my custom form?
you can use something like: >>> modelinstance._meta.get_field('myfield').help_text where modelinstance is an instance of your model and myfield is the name of the field you want to inspect. is that what you're looking for? newforms form_for_model also brings the model's help_text options in: >>> import django.newforms as forms >>> ModelFormClass = forms.models.form_for_model(Model) >>> ModelFormClass.base_fields['myfield'].help_text -jake --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---