AW: queries gone wild

2011-04-20 Thread Szabo, Patrick (LNG-VIE)
Thanks, I'll give it a shot ! Von: django-users@googlegroups.com [mailto:django-users@googlegroups.com] Im Auftrag von Oleg Lomaka Gesendet: Mittwoch, 20. April 2011 11:24 An: django-users@googlegroups.com Betreff: Re: queries gone wild Looks like you store dates as strings in sqlit

Re: queries gone wild

2011-04-20 Thread Oleg Lomaka
Looks like you store dates as strings in sqlite and as dates in mysql. Try this queryset: Duchung.objeccts.filter(Mitarbeiter=request.user.id, Datum__year=str(tag).split('-')[0]) On Wed, Apr 20, 2011 at 11:51 AM, Szabo, Patrick (LNG-VIE) < patrick.sz...@lexisnexis.at> wrote: > > > For developeme

queries gone wild

2011-04-20 Thread Szabo, Patrick (LNG-VIE)
Hi, For developement i've used sqlite and now i want to transfer to mysql. The transfer itself worked fine but now a couple of queries don't work anymore. Example: Buchung.objects.filter(Mitarbeiter = request.user.id, Datum__startswith=str(tag).split('-')[0]) "tag" looks like 201