A more general solution is to create a another database field for
sorting/searching.

If you override the model's save() method to copy the field's value,
removing any characters you don't want (it could be language
independent, so would remove "Der/Die/Das" from german titles, or it
can do anything else your heart fancies).

Then all you need to do is do your searching/sorting on the new field.

Cheers,

Will

--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to