Skip to content

Commit

Permalink
Merge pull request #607 from znick/fix_costudents
Browse files Browse the repository at this point in the history
Fix costudents
  • Loading branch information
znick authored Apr 13, 2024
2 parents 42f090b + ffb0f5c commit 3f1c5be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion anytask/issues/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 3f1c5be

Please sign in to comment.