openedx.core.djangoapps.notifications.management.commands package#
Submodules#
openedx.core.djangoapps.notifications.management.commands.delete_expired_notifications module#
Management command for deleting expired notifications
- class openedx.core.djangoapps.notifications.management.commands.delete_expired_notifications.Command(stdout=None, stderr=None, no_color=False, force_color=False)#
Bases:
BaseCommandInvoke with:
python manage.py lms delete_expired_notifications
- handle(*args, **kwargs)#
The actual logic of the command. Subclasses must implement this method.
- help = 'Deletes notifications that have been expired'#
openedx.core.djangoapps.notifications.management.commands.generate_course_notification_preferences module#
Management command for creating Course Notification Preferences for users in course.
- class openedx.core.djangoapps.notifications.management.commands.generate_course_notification_preferences.Command(stdout=None, stderr=None, no_color=False, force_color=False)#
Bases:
BaseCommandInvoke with:
python manage.py [lms|cms] generate_course_notification_preferences [course_id] [course_id] …
- add_arguments(parser)#
Entry point for subclassed commands to add custom arguments.
- handle(*args, **options)#
The actual logic of the command. Subclasses must implement this method.
- help = 'Back-fill missing course notification preferences. This will queue a celery task to create course notification preferences for all active enrollments in the courses provided.'#