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
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
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
3 matches
Mail list logo