mirror of
https://github.com/django/django.git
synced 2025-10-30 00:56:09 +00:00
Fix #17876: Corrected an exception (regression) raised where select_realted and only is used on a proxy model. Thanks milosu and charettes.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17692 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -1266,7 +1266,7 @@ def get_klass_info(klass, max_depth=0, cur_depth=0, requested=None,
|
||||
return None
|
||||
|
||||
if only_load:
|
||||
load_fields = only_load.get(klass)
|
||||
load_fields = only_load.get(klass) or set()
|
||||
# When we create the object, we will also be creating populating
|
||||
# all the parent classes, so traverse the parent classes looking
|
||||
# for fields that must be included on load.
|
||||
|
||||
Reference in New Issue
Block a user