On 30/10/06, Rares Vernica <[EMAIL PROTECTED]> wrote:
>
> Actually I mean this transformation:
> "first_name" -> "First name".
>

I don't know where it is and if it is actually an indivdual function
that can be performed on strings (it may be). The admin code is a bit
messy anyway. I would suggest:

def prettify_or_something(not_pretty):
    return not_pretty.replace("_", " ").title()

If you are interested in text processing with python there is a free
book here (http://gnosis.cx/TPiP/).

> Thanks,
> Ray
>
> Rares Vernica wrote:
> > Hi,
> >
> > Where is the django function that does the "first_name" -> "First Name"
> > transformation? (The function is used by the Admin interface.)
> >
> > Thanks a lot,
> > Ray
> >
> >
> > >
> >
>
>
> >
>


-- 
http://grimboy.co.uk

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