From ffb0f5c849403153d1456ed7657d9d8189a2e45c Mon Sep 17 00:00:00 2001 From: Nikolay Zhuravlev Date: Sat, 13 Apr 2024 13:15:56 +0200 Subject: [PATCH] Fix costudents --- anytask/issues/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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