moderation/moderation_report.py
-------------------------------
This script enumerates all unmoderated objects in the database and
-generates an email to the slaves list if there are any pending, to
-prod the moderators to do their job.
+generates an email to the NOTIFICATION_EMAIL address if there are any
+pending, to prod the moderators to do their job.
rss/fetch_rss_feeds.py
----------------------
here are some special things to consider when dealing with forms. For
any objects that are going to be moderated, the Model that is used
should set the send_notification attribute to True. This will cause
-the system to automatically send out notifications to the slaves list
-whenever a new object is created or an existing one is modified.
+the system to automatically send out notifications to the NOTIFICATION_EMAIL
+address whenever a new object is created or an existing one is modified.
If the form contains any text fields that accept markdown, the
attribute markdown_fields should be set to a tuple containing a list
#!/usr/bin/env python
#
-# Script to send daily moderation report to web slaves
+# Script to send daily moderation report to the NOTIFICATION_EMAIL address
+# (the moderators list)
#
#
# List of all unapproved objects, for the special admin page
@login_required
@user_passes_test(lambda u: u.is_staff)
-@user_passes_test(lambda u: u.groups.filter(name='web slaves').exists())
+@user_passes_test(lambda u: u.groups.filter(name='pgweb moderators').exists())
def admin_pending(request):
return render(request, 'core/admin_pending.html', {
'app_list': get_all_pending_moderations(),