On 8/13/06, GinTon <[EMAIL PROTECTED]> wrote:
>
> To convert the names to lower or UPPER case in the templates is used {{
> foo.name|lower }} and {{ foo.name|upper }}
>
> But is possible convert characters non-ASCII? Is there any of use
> foo.name.decode('utf-8').upper()  in the templates?
>
> Thanks in advance!
>
>
You can use expr custom tag to do this thing. Just see:

http://code.djangoproject.com/wiki/ExprTag

-- 
I like python!
My Blog: http://www.donews.net/limodou
My Django Site: http://www.djangocn.org
NewEdit Maillist: http://groups.google.com/group/NewEdit

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