Code

Changes between Initial Version and Version 12 of Ticket #7155


Ignore:
Timestamp:
06/16/08 09:24:34 (6 years ago)
Author:
ramiro
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #7155

    • Property Cc eric@…, jdunck@… added
    • Property Patch needs improvement unset
    • Property Needs tests unset
    • Property Keywords qsrf-cleanup added
    • Property Needs documentation unset
    • Property Triage Stage changed from Unreviewed to Ready for checkin
  • Ticket #7155 – Description

    initial v12  
    11After queryset refactor merge, a .dates() DateQueryset won't work on a null=True DateField.  
    22 
    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). 
     3During 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). 
    44 
    55I've attached a patch that fixes the problem