diff options
| author | Matthias Erll <matthias@precisdigital.com> | 2014-05-17 14:59:57 +0200 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-05-31 19:34:56 -0400 |
| commit | eee34ef64c026e3274c6d1b4fa2baffbc956b954 (patch) | |
| tree | 1ed5087f7396fafc49560e8106cf23c6d1afd99c /tests/queries | |
| parent | 84fb50df670c8126983c9f0fd4a5c30dbe57b684 (diff) | |
Fixed #22550 -- Prohibited QuerySet.last()/reverse() after slicing.
Diffstat (limited to 'tests/queries')
| -rw-r--r-- | tests/queries/tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/queries/tests.py b/tests/queries/tests.py index b69ea84345..b2d5ef5e95 100644 --- a/tests/queries/tests.py +++ b/tests/queries/tests.py @@ -731,10 +731,10 @@ class Queries1Tests(TestCase): q.extra(select={'foo': "1"}), [] ) + self.assertQuerysetEqual(q.reverse(), []) q.query.low_mark = 1 with self.assertRaisesMessage(AssertionError, 'Cannot change a query once a slice has been taken'): q.extra(select={'foo': "1"}) - self.assertQuerysetEqual(q.reverse(), []) self.assertQuerysetEqual(q.defer('meal'), []) self.assertQuerysetEqual(q.only('meal'), []) |
