(self)
| 905 | self.assertSequenceEqual(q.only("meal"), []) |
| 906 | |
| 907 | def test_ticket7235_extra(self): |
| 908 | Eaten.objects.create(meal="m") |
| 909 | q = Eaten.objects.none() |
| 910 | with self.assertNumQueries(0): |
| 911 | self.assertSequenceEqual(q.extra(select={"foo": "1"}), []) |
| 912 | q.query.low_mark = 1 |
| 913 | msg = "Cannot change a query once a slice has been taken." |
| 914 | with self.assertRaisesMessage(TypeError, msg): |
| 915 | q.extra(select={"foo": "1"}) |
| 916 | |
| 917 | def test_ticket7791(self): |
| 918 | # There were "issues" when ordering and distinct-ing on fields related |
nothing calls this directly
no test coverage detected