summaryrefslogtreecommitdiff
path: root/tests/ordering
diff options
context:
space:
mode:
authorNick Pope <nick.pope@flightdataservices.com>2019-08-20 08:54:41 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2020-02-04 13:20:06 +0100
commit335c9c94acf263901fb023404408880245b0c4b4 (patch)
tree691e9683de6c9840cd0a9a097d020c499ea735db /tests/ordering
parent469bf2db15597f2c87cb0f8f64132056d2467f15 (diff)
Simplified imports from django.db and django.contrib.gis.db.
Diffstat (limited to 'tests/ordering')
-rw-r--r--tests/ordering/models.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/ordering/models.py b/tests/ordering/models.py
index 62df09351f..f5a237fe45 100644
--- a/tests/ordering/models.py
+++ b/tests/ordering/models.py
@@ -14,7 +14,6 @@ undefined -- not random, just undefined.
"""
from django.db import models
-from django.db.models.expressions import OrderBy
class Author(models.Model):
@@ -35,7 +34,7 @@ class Article(models.Model):
'-pub_date',
models.F('headline'),
models.F('author__name').asc(),
- OrderBy(models.F('second_author__name')),
+ models.OrderBy(models.F('second_author__name')),
)
def __str__(self):