Ticket #3440: datequeryset.diff
File datequeryset.diff, 556 bytes (added by , 18 years ago) |
---|
-
django/db/models/query.py
568 568 try: 569 569 select, sql, params = self._get_sql_clause() 570 570 except EmptyResultSet: 571 r aise StopIteration571 return [] 572 572 573 573 sql = 'SELECT %s %s GROUP BY 1 ORDER BY 1 %s' % \ 574 574 (backend.get_date_trunc_sql(self._kind, '%s.%s' % (backend.quote_name(self.model._meta.db_table),