(self)
| 1972 | ) |
| 1973 | |
| 1974 | def test_multivalued_join_reuse(self): |
| 1975 | self.assertEqual( |
| 1976 | Season.objects.get(Exact(F("games__home"), "NY"), games__away="Boston"), |
| 1977 | self.s1, |
| 1978 | ) |
| 1979 | self.assertEqual( |
| 1980 | Season.objects.get(Exact(F("games__home"), "NY") & Q(games__away="Boston")), |
| 1981 | self.s1, |
| 1982 | ) |
| 1983 | self.assertEqual( |
| 1984 | Season.objects.get( |
| 1985 | Exact(F("games__home"), "NY") & Exact(F("games__away"), "Boston") |
| 1986 | ), |
| 1987 | self.s1, |
| 1988 | ) |