(self)
| 1398 | self.assertIs(hasattr(qs.first(), "is_book"), False) |
| 1399 | |
| 1400 | def test_overwrite_alias_with_annotation(self): |
| 1401 | qs = Book.objects.alias(is_book=Value(1)).annotate(is_book=F("is_book")) |
| 1402 | for book in qs: |
| 1403 | with self.subTest(book=book): |
| 1404 | self.assertEqual(book.is_book, 1) |
| 1405 | |
| 1406 | def test_alias_annotation_expression(self): |
| 1407 | qs = Book.objects.alias( |