Ticket #7155: null_dates.patch
File null_dates.patch, 592 bytes (added by , 17 years ago) |
---|
-
query.py
598 598 self.query.select = [] 599 599 self.query.add_date_select(self._field.column, self._kind, self._order) 600 600 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)) 602 602 603 603 def _clone(self, klass=None, setup=False, **kwargs): 604 604 c = super(DateQuerySet, self)._clone(klass, False, **kwargs)