diff options
author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-03-31 06:35:01 +0200 |
---|---|---|
committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-03-31 10:54:59 +0200 |
commit | 0a3c6fe6b2c43b0bb90cb9df3840dcb70edc22a1 (patch) | |
tree | aa43942d0c97eb6cc736999999295642e3b360d4 /django/db/models/sql/compiler.py | |
parent | 0db0a25d8421ff7fda7ef2c5999b263261b04d93 (diff) | |
download | django-0a3c6fe6b2c43b0bb90cb9df3840dcb70edc22a1.tar.gz |
Refs #24020 -- Removed redundant Query.get_loaded_field_names().
get_loaded_field_names() is no longer called in multiple places
(see 0c7633178fa9410f102e4708cef979b873bccb76) and it's redundant
with SQLCompiler.deferred_to_columns().
Diffstat (limited to 'django/db/models/sql/compiler.py')
-rw-r--r-- | django/db/models/sql/compiler.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/models/sql/compiler.py b/django/db/models/sql/compiler.py index ce2787b6c0..0f798fbafa 100644 --- a/django/db/models/sql/compiler.py +++ b/django/db/models/sql/compiler.py @@ -1006,7 +1006,7 @@ class SQLCompiler: if not opts: opts = self.query.get_meta() root_alias = self.query.get_initial_alias() - only_load = self.query.get_loaded_field_names() + only_load = self.deferred_to_columns() # Setup for the case when only particular related fields should be # included in the related selection. |