1
0
mirror of https://github.com/django/django.git synced 2025-10-30 00:56:09 +00:00

Fixed #14729 -- RawQuerySet.__repr__ fails when params passed as list. Thanks, intgr for ticket and accuser for patch.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16088 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Jannis Leidel
2011-04-22 18:17:26 +00:00
parent c8092b840b
commit c77372cad0
3 changed files with 19 additions and 2 deletions

View File

@@ -74,7 +74,7 @@ class RawQuery(object):
return iter(result)
def __repr__(self):
return "<RawQuery: %r>" % (self.sql % self.params)
return "<RawQuery: %r>" % (self.sql % tuple(self.params))
def _execute_query(self):
self.cursor = connections[self.using].cursor()