Add curators to notif list
This commit is contained in:
parent
9d9d171209
commit
e6a4519291
1 changed files with 1 additions and 0 deletions
|
@ -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()))
|
||||||
|
|
Loading…
Reference in a new issue