Re: DatabaseWrapper operators

2009-05-06 Thread Clément Nodet
Hi, I'm not sure this mailing list is the best place to discuss further that topic, I guess you'll get more feedback on http://forums.mysql.com/ if you want to keep going in the collation direction, or on django-users. Anyway, on that 'ś' problem, you should know more or less the full list of po

Re: DatabaseWrapper operators

2009-05-05 Thread pbzRPA
One more thing. Would you know if its mysql version related? I am running 5.0.56 and am not sure if that might be the problem. Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To pos

Re: DatabaseWrapper operators

2009-05-05 Thread pbzRPA
Hi, Thanks for the advice, it has solved some of my problem but the "ś" for example still does not get found when looking for "s". But it's a step in the right direction. :) Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: DatabaseWrapper operators

2009-05-05 Thread Clément Nodet
2009/5/5 pbzRPA > > Hi, thank you for your input. > > The trouble I am having is that I have a polish database of users with > polish letters in their names and surnames. Now not all international > users have access to polish letters on their system therefore I need > to be able to let a user en

Re: DatabaseWrapper operators

2009-05-04 Thread pbzRPA
Hi, thank you for your input. The trouble I am having is that I have a polish database of users with polish letters in their names and surnames. Now not all international users have access to polish letters on their system therefore I need to be able to let a user enter English letters like "L" i

Re: DatabaseWrapper operators

2009-05-04 Thread Ed Menendez
It might be easier to write a manager depending on what exactly you're trying to do. In my opinion you should write an operator for a database feature that you're trying to implement but if you're trying to cleanup text or transform text in some way... I think a manager might be a better solution.

Re: DatabaseWrapper operators

2009-05-04 Thread Malcolm Tredinnick
On Mon, 2009-05-04 at 03:26 -0700, pbzRPA wrote: > I would like to know if anyone knows how to create custom operators > for querysets. > > Currently you can do something like: > > foo.objects.filter(myfield__icontains = x) > > I would like to add my own operator so I can do something like: >

DatabaseWrapper operators

2009-05-04 Thread pbzRPA
I would like to know if anyone knows how to create custom operators for querysets. Currently you can do something like: foo.objects.filter(myfield__icontains = x) I would like to add my own operator so I can do something like: foo.objects.filter(myfield__converttext = x) where "converttext" w