Add future notifications for roles
The post_save signal now checks if the instance is a Role, and queues a django q task to produce a Notification on the start and end dates for the Role. The future task checks if the date has changed after it was queued and only produces a Notification if today's date matches the date for the task. Resolves: GREG-65
parent
334cb21e
No related branches found
No related tags found
Showing
- greg/admin.py 14 additions, 0 deletionsgreg/admin.py
- greg/signals.py 53 additions, 5 deletionsgreg/signals.py
- greg/tests/test_notifications.py 6 additions, 3 deletionsgreg/tests/test_notifications.py
- greg/tests/test_signals.py 51 additions, 1 deletiongreg/tests/test_signals.py
- greg/utils.py 13 additions, 1 deletiongreg/utils.py
- mypy.ini 3 additions, 0 deletionsmypy.ini
Please register or sign in to comment