Ticket #8683: DateQuerySet-assertion.diff

File DateQuerySet-assertion.diff, 621 bytes (added by vung, 16 years ago)
  • django/db/models/query.py

     
    737737        self.query.select = []
    738738        field = self.model._meta.get_field(self._field_name, many_to_many=False)
    739739        assert isinstance(field, DateField), "%r isn't a DateField." \
    740                 % field_name
     740                % field.name
    741741        self.query.add_date_select(field, self._kind, self._order)
    742742        if field.null:
    743743            self.query.add_filter(('%s__isnull' % field.name, False))
Back to Top