Ticket #3440: datequeryset.patch

File datequeryset.patch, 555 bytes (added by ashleywalsh@…, 18 years ago)

Diff against r4460

  • django/db/models/query.py

     
    568568        try:
    569569            select, sql, params = self._get_sql_clause()
    570570        except EmptyResultSet:
    571             raise StopIteration
     571            raise []
    572572       
    573573        sql = 'SELECT %s %s GROUP BY 1 ORDER BY 1 %s' % \
    574574            (backend.get_date_trunc_sql(self._kind, '%s.%s' % (backend.quote_name(self.model._meta.db_table),
Back to Top