Kaydet (Commit) ef6c680f authored tarafından Mads Jensen's avatar Mads Jensen Kaydeden (comit) Tim Graham

Removed unused variable in QuerySet._earliest_or_latest().

üst d0f569b3
......@@ -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() '
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment