> Quick question.  Is there any way to add a verbose name for
> one of my apps?  I have an app named my_transfers and in the
> admin index view


Ah...I missed that it was the *app* not the Model that you were 
looking for.

According to django/contrib/admin/templates/admin/index.html

you want to affect the value of {{app_list.name}}  This is 
assigned in the django/contrib/admin/templatetags/adminapplist.py

Tracing this back to db/models/base.py where it's assigned, and 
looking at several other places in the code, this looks like this 
needs to be a name that can be used in identifier contexts.

However, since it's just being pulled into the template, you can 
tweak the django/contrib/admin/templates/admin/index.html and its 
kin to pull a prettified app-name if desired for presentation 
purposes, and fall back to the original code if not specified.

-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-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
-~----------~----~----~----~------~----~------~--~---

Reply via email to