diff --git a/mayan/apps/document_indexing/tests/test_models.py b/mayan/apps/document_indexing/tests/test_models.py index acaff8e9a4..7a5bf488e3 100644 --- a/mayan/apps/document_indexing/tests/test_models.py +++ b/mayan/apps/document_indexing/tests/test_models.py @@ -79,7 +79,7 @@ class IndexTestCase(IndexTemplateTestMixin, DocumentTestMixin, BaseTestCase): self._create_document() self.assertEqual( - [instance.value for instance in IndexInstanceNode.objects.all()], + list(IndexInstanceNode.objects.values_list('value', flat=True)), [ '', force_text(self.test_document.date_added.year), force_text(self.test_document.date_added.month)