diff options
| author | Luke Plant <L.Plant.98@cantab.net> | 2022-03-30 10:56:13 +0200 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-03-30 11:03:48 +0200 |
| commit | 04ad0f26ba4b8c79dc311e1789457e0c4d1b8832 (patch) | |
| tree | 70b945d429808bc45c2b90fbc41e79b484dceaf4 /tests/annotations | |
| parent | fac662f4798f7e4e0ed9be6b4fb4a87a80810a68 (diff) | |
Refs #33397 -- Added extra tests for resolving an output_field of CombinedExpression.
Diffstat (limited to 'tests/annotations')
| -rw-r--r-- | tests/annotations/tests.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/annotations/tests.py b/tests/annotations/tests.py index b3b0e5d703..5106a377ac 100644 --- a/tests/annotations/tests.py +++ b/tests/annotations/tests.py @@ -486,6 +486,7 @@ class NonAggregateAnnotationTestCase(TestCase): book2 = Book.objects.annotate(adjusted_rating=None + F("rating")).get( pk=self.b1.pk ) + self.assertIs(book1.adjusted_rating, None) self.assertEqual(book1.adjusted_rating, book2.adjusted_rating) def test_update_with_annotation(self): |
