Re: Custom QuerySet and __date field lookup

2015-11-05 Thread aprzywecki
You were right. Wrong virtualenv...*facepalm* -- 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, s

Custom QuerySet and __date field lookup

2015-11-04 Thread aprzywecki
Hello, I'm playing around with the 1.9 beta release. The __date field lookup (casts DateTimeField to a date) is a very useful new addition. However, it doesn't seem to work in a custom QuerySet. models.py class EntryQuerySet(models.QuerySet): def today(self): today = now().date()