Notify sponsors about ending roles
The setup has five parts: - a new email template type - a new django-q task for notifying - a management command for scheduling the task periodically - a new settings variable NOTIFIER_LIMIT for controlling the number of days into the future the notifier script should use for end date of roles. - a new settings variable NOTIFIER_SCHEDULE_TYPE for controlling how often the notifier task should be scheduled when using the management command. Resolves: GREG-162
parent
df3607c0
No related branches found
No related tags found
Checking pipeline status
This commit is part of merge request !227. Comments created here will be created in the context of that merge request.
Showing
- greg/management/commands/role_end_notifier.py 31 additions, 0 deletionsgreg/management/commands/role_end_notifier.py
- greg/tasks.py 57 additions, 0 deletionsgreg/tasks.py
- greg/tests/conftest.py 23 additions, 1 deletiongreg/tests/conftest.py
- greg/tests/test_tasks.py 41 additions, 0 deletionsgreg/tests/test_tasks.py
- gregsite/settings/base.py 7 additions, 0 deletionsgregsite/settings/base.py
- gregui/mailutils.py 13 additions, 0 deletionsgregui/mailutils.py
- gregui/migrations/0003_add_email_template_type.py 26 additions, 0 deletionsgregui/migrations/0003_add_email_template_type.py
- gregui/models.py 5 additions, 0 deletionsgregui/models.py
Loading
Please register or sign in to comment