Skip to content

Commit cd6ab71

Browse files
committed
test: add issue test #489
1 parent 7307e35 commit cd6ab71

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/tests.py

+5
Original file line numberDiff line numberDiff line change
@@ -730,6 +730,11 @@ def test_480(self):
730730
conditions.append(reduce(operator.or_, queries))
731731
list(queryset.filter(reduce(operator.and_, conditions)).cache())
732732

733+
def test_489(self):
734+
_ = TaggedPost.objects.create(meta={}, tags=[1, 2, 3])
735+
tags = TaggedPost.objects.cache().exclude(tags=[])
736+
737+
self.assertEqual(tags.count(), 1)
733738

734739
class RelatedTests(BaseTestCase):
735740
fixtures = ['basic']

0 commit comments

Comments
 (0)