mirror of
https://github.com/django/django.git
synced 2025-09-27 12:39:17 +00:00
Removed unused variable in QuerySet._earliest_or_latest().
This commit is contained in:
parent
d0f569b350
commit
ef6c680f60
1 changed files with 0 additions and 1 deletions
|
@ -562,7 +562,6 @@ class QuerySet:
|
||||||
if fields and field_name is not None:
|
if fields and field_name is not None:
|
||||||
raise ValueError('Cannot use both positional arguments and the field_name keyword argument.')
|
raise ValueError('Cannot use both positional arguments and the field_name keyword argument.')
|
||||||
|
|
||||||
order_by = None
|
|
||||||
if field_name is not None:
|
if field_name is not None:
|
||||||
warnings.warn(
|
warnings.warn(
|
||||||
'The field_name keyword argument to earliest() and latest() '
|
'The field_name keyword argument to earliest() and latest() '
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue