Adding help text to Django admin

3,339 views
Skip to first unread message

Sithembewena Lloyd Dube

unread,
Oct 4, 2010, 4:46:37 AM10/4/10
to django...@googlegroups.com
Greetings folks,

I need to add "help text" to a Django admin. Sort of like the text below fields in the Django Redirects app. to provide a snippet of information about each field.

How can I achieve this?

--
Regards,
Sithembewena Lloyd Dube
http://www.lloyddube.com

Martin Melin

unread,
Oct 4, 2010, 5:00:50 AM10/4/10
to django...@googlegroups.com
On Mon, Oct 4, 2010 at 10:46 AM, Sithembewena Lloyd Dube
<zeb...@gmail.com> wrote:
> Greetings folks,
>
> I need to add "help text" to a Django admin. Sort of like the text below
> fields in the Django Redirects app. to provide a snippet of information
> about each field.
>
> How can I achieve this?

http://docs.djangoproject.com/en/dev/ref/models/fields/#help-text

Regards,
Martin Melin

Tim Sawyer

unread,
Oct 4, 2010, 5:01:14 AM10/4/10
to django...@googlegroups.com
Set help_text on the appropriate model field

name = models.CharField(max_length=100, help_text='Current name of band')

Tim.

> --
> You received this message because you are subscribed to the Google
> Groups "Django users" group.
> To post to this group, send email to django...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.

Sithembewena Lloyd Dube

unread,
Oct 4, 2010, 5:04:53 AM10/4/10
to django...@googlegroups.com
Ah, easy as eating pie. Thanks folks!
Reply all
Reply to author
Forward
0 new messages