Add curators to notif list

This commit is contained in:
cuom1999 2022-09-05 21:01:41 -05:00
parent 9d9d171209
commit e6a4519291

View file

@ -387,6 +387,7 @@ class ProblemAdmin(CompareVersionAdmin):
# Create notification # Create notification
if "is_public" in form.changed_data: if "is_public" in form.changed_data:
users = set(obj.authors.all()) users = set(obj.authors.all())
users = users.union(users, set(obj.curators.all()))
if obj.organizations.count() > 0: if obj.organizations.count() > 0:
for org in obj.organizations.all(): for org in obj.organizations.all():
users = users.union(users, set(org.admins.all())) users = users.union(users, set(org.admins.all()))