Ticket #3711: backends.diff

File backends.diff, 585 bytes (added by Simon G. <dev@…>, 18 years ago)
  • django/db/backends/util.py

     
    1616            # formatting with '%' only works with tuples or dicts.
    1717            if not isinstance(params, (tuple, dict)):
    1818                params = tuple(params)
     19            if len(self.db.queries) > 25:
     20                self.db.queries.pop(0)
    1921            self.db.queries.append({
    2022                'sql': sql % params,
    2123                'time': "%.3f" % (stop - start),
Back to Top