Documentation on Django Comments moderation emails doesn't match actual behavior
|Reported by:||Mike Shultz||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
django.contrib.comments.moderation(ln:239) currently uses settings.MANAGERS to decide who the recipients of the moderation e-mails are. This isn't mentioned in the documentation.
However, I'd like to request this to change to sending to all users with the
Can moderate comments permission. If this would be to resource intensive(querying users every comment post), then I'd like to suggest adding
settings.MODERATORS that would trump
settings.MANAGERS if it exists.
I don't have a good idea for the former, but the latter, a simple change to something like this would help:
recipient_list = [manager_tuple for manager_tuple in getattr(settings, 'MODERATORS', None) or settings.MANAGERS]