mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Refs #33397 -- Added extra tests for resolving an output_field of CombinedExpression.
This commit is contained in:
committed by
Mariusz Felisiak
parent
fac662f479
commit
04ad0f26ba
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user