Changes between Initial Version and Version 12 of Ticket #7155
- Timestamp:
- Jun 16, 2008, 11:24:34 AM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #7155
- Property Triage Stage Unreviewed → Ready for checkin
- Property Cc added
- Property Keywords qsrf-cleanup added
-
Ticket #7155 – Description
initial v12 1 1 After queryset refactor merge, a .dates() DateQueryset won't work on a null=True DateField. 2 2 3 During query setup, the queryset adds a .filter(fieldname__isnull=True) instead of .filter(fieldname__isnull=False)to avoid parsing null dates, so the resulting sql returns an empty list (or raise errors if there actually are null fields in the db).3 During query setup, the queryset adds a {{{.filter(fieldname__isnull=True)}}} instead of {{{.filter(fieldname__isnull=False)}}} to avoid parsing null dates, so the resulting sql returns an empty list (or raise errors if there actually are null fields in the db). 4 4 5 5 I've attached a patch that fixes the problem