From ef6c680f60a8e2ab45c936ec91f856fb3d7dc651 Mon Sep 17 00:00:00 2001 From: Mads Jensen Date: Wed, 27 Dec 2017 15:04:46 +0100 Subject: [PATCH] Removed unused variable in QuerySet._earliest_or_latest(). --- django/db/models/query.py | 1 - 1 file changed, 1 deletion(-) diff --git a/django/db/models/query.py b/django/db/models/query.py index de8ff00d2c..ab5de74ac0 100644 --- a/django/db/models/query.py +++ b/django/db/models/query.py @@ -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() '