Ticket #7155: null_dates.patch

File null_dates.patch, 592 bytes (added by fcaprioli@…, 17 years ago)
  • query.py

     
    598598        self.query.select = []
    599599        self.query.add_date_select(self._field.column, self._kind, self._order)
    600600        if self._field.null:
    601             self.query.add_filter(('%s__isnull' % self._field.name, True))
     601            self.query.add_filter(('%s__isnull' % self._field.name, False))
    602602
    603603    def _clone(self, klass=None, setup=False, **kwargs):
    604604        c = super(DateQuerySet, self)._clone(klass, False, **kwargs)
Back to Top