mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fixed #24141 -- Added QuerySet.contains().
This commit is contained in:
committed by
Mariusz Felisiak
parent
286fb73b69
commit
d01709aae2
@@ -404,6 +404,12 @@ class QuerySetSetOperationTests(TestCase):
|
||||
msg % (operation, combinator),
|
||||
):
|
||||
getattr(getattr(qs, combinator)(qs), operation)()
|
||||
with self.assertRaisesMessage(
|
||||
NotSupportedError,
|
||||
msg % ('contains', combinator),
|
||||
):
|
||||
obj = Number.objects.first()
|
||||
getattr(qs, combinator)(qs).contains(obj)
|
||||
|
||||
def test_get_with_filters_unsupported_on_combined_qs(self):
|
||||
qs = Number.objects.all()
|
||||
|
||||
Reference in New Issue
Block a user