mirror of
https://github.com/django/django.git
synced 2025-06-05 03:29:12 +00:00
[1.7.x] Fixed flake8 warning.
Backport of f9f9f3ad60 from master
This commit is contained in:
parent
a7336cdcbe
commit
4c56b6f820
@ -346,7 +346,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…
x
Reference in New Issue
Block a user