diff --git a/tests/tests.py b/tests/tests.py index 1fd3c55c..63cd7638 100644 --- a/tests/tests.py +++ b/tests/tests.py @@ -730,6 +730,11 @@ def test_480(self): conditions.append(reduce(operator.or_, queries)) list(queryset.filter(reduce(operator.and_, conditions)).cache()) + def test_489(self): + _ = TaggedPost.objects.create(meta={}, tags=[1,2,3]) + tags = TaggedPost.objects.cache().exclude(tags=[]) + + self.assertEqual(tags.count(), 1) class RelatedTests(BaseTestCase): fixtures = ['basic']