Add one document type per iteration

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2019-04-28 01:46:58 -04:00
parent 5c07c61b69
commit e916e73ead

View File

@@ -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
)