Hi all,
I have written a Journey model, which has an out and a back field, both of which are datetime fields.

What I want to do is something like:

from datetime import datetime
now = datetime.now()
for journey in Journey.objects.filter(out__month = now.month, out__day = now.day):
 print journey

This returns an empty list though.

Am I doing something wrong?

Thanks,

--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/561E5DDD.4010604%40googlemail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to