From 156a2138db20abc89933121e4ff2ee2ce56a173a Mon Sep 17 00:00:00 2001 From: Simon Charette Date: Sat, 6 Jun 2020 14:34:38 -0400 Subject: Refs #30446 -- Removed unnecessary Value(..., output_field) in docs and tests. --- tests/aggregation/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/aggregation') diff --git a/tests/aggregation/tests.py b/tests/aggregation/tests.py index da78b8d9a9..c738cbb27e 100644 --- a/tests/aggregation/tests.py +++ b/tests/aggregation/tests.py @@ -841,7 +841,7 @@ class AggregateTestCase(TestCase): Book.objects.aggregate(fail=F('price')) def test_nonfield_annotation(self): - book = Book.objects.annotate(val=Max(Value(2, output_field=IntegerField()))).first() + book = Book.objects.annotate(val=Max(Value(2))).first() self.assertEqual(book.val, 2) book = Book.objects.annotate(val=Max(Value(2), output_field=IntegerField())).first() self.assertEqual(book.val, 2) -- cgit v1.3