Ticket #3440: datequeryset.diff

File datequeryset.diff, 556 bytes (added by ashleywalsh@…, 18 years ago)

correct diff

  • django/db/models/query.py

     
    568568        try:
    569569            select, sql, params = self._get_sql_clause()
    570570        except EmptyResultSet:
    571             raise StopIteration
     571            return []
    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