diff options
author | Simon Charette <charette.s@gmail.com> | 2020-06-06 14:34:38 -0400 |
---|---|---|
committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-07-15 10:58:38 +0200 |
commit | 156a2138db20abc89933121e4ff2ee2ce56a173a (patch) | |
tree | 294047367a3c1d87d69b0cacac3504ffc892faa3 /tests/aggregation | |
parent | 1e38f1191de21b6e96736f58df57dfb851a28c1f (diff) | |
download | django-156a2138db20abc89933121e4ff2ee2ce56a173a.tar.gz |
Refs #30446 -- Removed unnecessary Value(..., output_field) in docs and tests.
Diffstat (limited to 'tests/aggregation')
-rw-r--r-- | tests/aggregation/tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |