mirror of
https://github.com/django/django.git
synced 2025-10-30 00:56:09 +00:00
Fixed #12806 -- Added an implementation of RawQuerySet.__getitem__. Thanks, Bruno Renié.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12504 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -54,7 +54,7 @@ class RawQuery(object):
|
||||
|
||||
def __iter__(self):
|
||||
# Always execute a new query for a new iterator.
|
||||
# This could be optomized with a cache at the expense of RAM.
|
||||
# This could be optimized with a cache at the expense of RAM.
|
||||
self._execute_query()
|
||||
return iter(self.cursor)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user