1
0
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:
Justin Bronn
2010-02-23 05:22:12 +00:00
parent 349827996b
commit c4699b0b8a
5 changed files with 35 additions and 2 deletions

View File

@@ -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)