summaryrefslogtreecommitdiff
path: root/tests/gis_tests
diff options
context:
space:
mode:
authorPablo Pissi <pablopissi@gmail.com>2022-06-12 22:08:21 -0300
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2022-06-14 12:24:43 +0200
commitd287294885e116c49c87f0c663068511a8402c0f (patch)
tree19171842b0581e62dbf5eda6a56a66a37651c53a /tests/gis_tests
parentdb588d4f0edde5095f8975be1da4e693268b86b3 (diff)
downloaddjango-d287294885e116c49c87f0c663068511a8402c0f.tar.gz
Fixed #33772 -- Added QuerySet.first()/last() error message on unordered queryset with aggregation.
Diffstat (limited to 'tests/gis_tests')
-rw-r--r--tests/gis_tests/geoapp/test_expressions.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/gis_tests/geoapp/test_expressions.py b/tests/gis_tests/geoapp/test_expressions.py
index d0e92a9599..b56832bb6f 100644
--- a/tests/gis_tests/geoapp/test_expressions.py
+++ b/tests/gis_tests/geoapp/test_expressions.py
@@ -62,6 +62,7 @@ class GeoExpressionsTests(TestCase):
)
qs = (
City.objects.values("name")
+ .order_by("name")
.annotate(
distance=Min(
functions.Distance("multifields__point", multi_field.city.point)