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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user