mirror of
https://github.com/django/django.git
synced 2025-10-29 08:36:09 +00:00
Fixed #17335 -- Added supports_select_related hook for django-nonrel. Thanks, jonash
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17170 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -232,7 +232,9 @@ class QuerySet(object):
|
||||
An iterator over the results from applying this QuerySet to the
|
||||
database.
|
||||
"""
|
||||
fill_cache = self.query.select_related
|
||||
fill_cache = False
|
||||
if connections[self.db].features.supports_select_related:
|
||||
fill_cache = self.query.select_related
|
||||
if isinstance(fill_cache, dict):
|
||||
requested = fill_cache
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user