diff --git a/anytask/issues/models.py b/anytask/issues/models.py index 8d417f22..29425861 100644 --- a/anytask/issues/models.py +++ b/anytask/issues/models.py @@ -502,7 +502,7 @@ def set_field_costudents_names(self, value): deleted_costudents = [get_user_fullname(costudent) for costudent in set(self.costudents.all()).difference(set(new_costudents))] add_costudents = [get_user_fullname(costudent) for costudent in new_costudents.all()] - self.costudents = value + self.costudents.set(value) value = ', '.join(add_costudents) + '\n' + ', '.join(deleted_costudents) return delete_event, value