On Friday 26 May 2006 16:52, Jacob Kaplan-Moss wrote: > qs = name_startswith | name_contains > if len(input) >= 5: > qs = qs | description_startswith | description_contains > return qs[start:start+pagesize+1] > > This code does *one* query only.
Yeah, I'm in love with that stuff too. I have to get out more. Luke -- The early bird gets the worm, but the second mouse gets the cheese. --Steven Wright Luke Plant || L.Plant.98 (at) cantab.net || http://lukeplant.me.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 -~----------~----~----~----~------~----~------~--~---