Removed unused variable in QuerySet._earliest_or_latest().

This commit is contained in:
Mads Jensen 2017-12-27 15:04:46 +01:00 committed by Tim Graham
parent d0f569b350
commit ef6c680f60
1 changed files with 0 additions and 1 deletions

View File

@ -562,7 +562,6 @@ class QuerySet:
if fields and field_name is not None:
raise ValueError('Cannot use both positional arguments and the field_name keyword argument.')
order_by = None
if field_name is not None:
warnings.warn(
'The field_name keyword argument to earliest() and latest() '