1
0
mirror of https://github.com/django/django.git synced 2025-11-07 07:15:35 +00:00

Deleted unused variable in SQLCompiler.get_related_selections().

Unused since 01d440fa1e.
This commit is contained in:
Mads Jensen
2018-07-10 15:15:19 +02:00
committed by Tim Graham
parent bcdd9149d4
commit 8e4a75e5d5

View File

@@ -849,7 +849,6 @@ class SQLCompiler:
select, model._meta, alias, cur_depth + 1, select, model._meta, alias, cur_depth + 1,
next, restricted) next, restricted)
get_related_klass_infos(klass_info, next_klass_infos) get_related_klass_infos(klass_info, next_klass_infos)
fields_not_found = set(requested).difference(fields_found)
for name in list(requested): for name in list(requested):
# Filtered relations work only on the topmost level. # Filtered relations work only on the topmost level.
if cur_depth > 1: if cur_depth > 1: