On Wed, Jun 3, 2009 at 4:52 PM, Andy Dietler <andydiet...@gmail.com> wrote:
> > Is there an easy way to ignore the word "The" when returning a list > using "__startswith=" in Django/Python? > > I've looked around but it's hard to make any ground when searching for > the word The. > > > > There isn't an exact command to do this, but if all you want to do is match something that either starts with "X" or "The X" you can always do Q(field__startswith="X") | Q(field__startswith="The X"). Alex -- "I disapprove of what you say, but I will defend to the death your right to say it." --Voltaire "The people's good is the highest law."--Cicero --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---