On 10/29/06, Rares Vernica <[EMAIL PROTECTED]> wrote:
> Where is the django function that does the "first_name" -> "First Name"
> transformation? (The function is used by the Admin interface.)

It's quite simple:

    name = name.replace('_', ' ')

If you want to use initial caps as well, just call .title() on the string.

Adrian

-- 
Adrian Holovaty
holovaty.com | djangoproject.com

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

Reply via email to