(self)
| 1394 | self.assertIs(hasattr(book, "is_book_alias"), False) |
| 1395 | |
| 1396 | def test_overwrite_annotation_with_alias(self): |
| 1397 | qs = Book.objects.annotate(is_book=Value(1)).alias(is_book=F("is_book")) |
| 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")) |