mirror of
https://github.com/django/django.git
synced 2025-09-21 01:40:31 +00:00
Removed unnecessary check in SQLCompiler.get_related_selections().
This commit is contained in:
parent
1dafd8cb0b
commit
cb362a6750
1 changed files with 1 additions and 1 deletions
|
@ -740,7 +740,7 @@ class SQLCompiler:
|
||||||
return chain(direct_choices, reverse_choices)
|
return chain(direct_choices, reverse_choices)
|
||||||
|
|
||||||
related_klass_infos = []
|
related_klass_infos = []
|
||||||
if not restricted and self.query.max_depth and cur_depth > self.query.max_depth:
|
if not restricted and cur_depth > self.query.max_depth:
|
||||||
# We've recursed far enough; bail out.
|
# We've recursed far enough; bail out.
|
||||||
return related_klass_infos
|
return related_klass_infos
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue