From e916e73ead0180f65a679e576a4fd6447226f4c2 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Sun, 28 Apr 2019 01:46:58 -0400 Subject: [PATCH] Add one document type per iteration Signed-off-by: Roberto Rosario --- mayan/apps/document_indexing/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mayan/apps/document_indexing/models.py b/mayan/apps/document_indexing/models.py index 7d8ae9f8a0..852bcd1073 100644 --- a/mayan/apps/document_indexing/models.py +++ b/mayan/apps/document_indexing/models.py @@ -79,7 +79,7 @@ class Index(models.Model): actor=_user, target=self ) for obj in queryset: - self.document_types.remove(*queryset) + self.document_types.remove(obj) event_document_type_edited.commit( actor=_user, action_object=self, target=obj )