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 )