mirror of
https://github.com/django/django.git
synced 2025-08-08 04:48:27 +00:00
Fixed flake8 warning.
This commit is contained in:
parent
157c42a976
commit
f9f9f3ad60
1 changed files with 1 additions and 1 deletions
|
@ -358,7 +358,7 @@ class QuerySet(object):
|
||||||
if self.query.can_filter():
|
if self.query.can_filter():
|
||||||
clone = clone.order_by()
|
clone = clone.order_by()
|
||||||
if (not clone.query.select_for_update or
|
if (not clone.query.select_for_update or
|
||||||
connections[self.db].features.supports_select_for_update_with_limit):
|
connections[self.db].features.supports_select_for_update_with_limit):
|
||||||
clone = clone[:MAX_GET_RESULTS + 1]
|
clone = clone[:MAX_GET_RESULTS + 1]
|
||||||
num = len(clone)
|
num = len(clone)
|
||||||
if num == 1:
|
if num == 1:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue