Ticket #8683: DateQuerySet-assertion.diff
File DateQuerySet-assertion.diff, 621 bytes (added by , 16 years ago) |
---|
-
django/db/models/query.py
737 737 self.query.select = [] 738 738 field = self.model._meta.get_field(self._field_name, many_to_many=False) 739 739 assert isinstance(field, DateField), "%r isn't a DateField." \ 740 % field _name740 % field.name 741 741 self.query.add_date_select(field, self._kind, self._order) 742 742 if field.null: 743 743 self.query.add_filter(('%s__isnull' % field.name, False))