Add warning email and notification 08/69108/3
authorBrandon Lo <lobrandon1217@gmail.com>
Tue, 26 Nov 2019 21:39:26 +0000 (16:39 -0500)
committerBrandon Lo <lobrandon1217@gmail.com>
Tue, 3 Dec 2019 20:16:16 +0000 (15:16 -0500)
commit6be40a5f2d75b157cf2a2374f2f866f6fdc92b18
treebdfa3b9ed77ebfef33f58262950ad551d579e3bb
parentf1d7b9300fbb06495c6087f975cdbb68a894da37
Add warning email and notification

This adds the abandoned changes made to the notification
system and also adds a simple task to check for expiring
bookings and sends out emails and notifications.

Change-Id: I1530d19f41cf93626bb642e6b269f9ec55860b81
Signed-off-by: Brandon Lo <lobrandon1217@gmail.com>
src/laas_dashboard/settings.py
src/notifier/admin.py
src/notifier/manager.py
src/notifier/migrations/0006_emailed.py [new file with mode: 0644]
src/notifier/models.py
src/notifier/tasks.py [new file with mode: 0644]
src/templates/notifier/email_ended.txt
src/templates/notifier/email_expiring.txt [new file with mode: 0644]
src/templates/notifier/email_fulfilled.txt
src/templates/notifier/expiring_booking.html [new file with mode: 0644]
src/templates/notifier/new_booking.html