Files
edx-platform/lms/djangoapps/bulk_email/data.py
Justin Hynes 31d3fcc01a feat: add models for scheduled instructor tasks
[MICROBA-1508]
- Adds the InstructorTaskSchedule model
- Adds the HistoricalInstructorTaskSchedule model
- Adds utility function used to create a InstructorTaskSchedule instance
- Adds a public `create_course_email` Python API function to the bulk_email app that can be imported and used in external apps
- Adds a new `test_api_helper.py` test file (with tests for the new `schedule_task` function) to the instructor_task app
- Adds a new `test_api.py` test file (with tests for the new `create_course_email` function to the bulk_email app
2022-03-25 14:34:37 -04:00

23 lines
760 B
Python

"""
Bulk Email Data
This provides Data models to represent Bulk Email data.
"""
class BulkEmailTargetChoices:
"""
Enum for the available targets (recipient groups) of an email authored with the bulk course email tool.
SEND_TO_MYSELF - Message intended for author of the message
SEND_TO_STAFF - Message intended for all course staff
SEND_TO_LEARNERS - Message intended for all enrolled learners
SEND_TO_COHORT - Message intended for a specific cohort
SEND_TO_TRACK - Message intended for all learners in a specific track (e.g. audit or verified)
"""
SEND_TO_MYSELF = "myself"
SEND_TO_STAFF = "staff"
SEND_TO_LEARNERS = "learners"
SEND_TO_COHORT = "cohort"
SEND_TO_TRACK = "track"