diff options
| author | Mads Jensen <mje@inducks.org> | 2017-12-27 15:04:46 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-12-27 09:04:46 -0500 |
| commit | ef6c680f60a8e2ab45c936ec91f856fb3d7dc651 (patch) | |
| tree | e29d5b94d7dc27a2590aa8f693bba911639b5c22 | |
| parent | d0f569b350bca89eeb186523d8905a6e31b5a947 (diff) | |
Removed unused variable in QuerySet._earliest_or_latest().
| -rw-r--r-- | django/db/models/query.py | 1 |
1 files changed, 0 insertions, 1 deletions
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() ' |
