diff options
author | Brandon Lo <lobrandon1217@gmail.com> | 2019-11-26 16:39:26 -0500 |
---|---|---|
committer | Brandon Lo <lobrandon1217@gmail.com> | 2019-12-03 15:16:16 -0500 |
commit | 6be40a5f2d75b157cf2a2374f2f866f6fdc92b18 (patch) | |
tree | bdfa3b9ed77ebfef33f58262950ad551d579e3bb /src/notifier/migrations | |
parent | f1d7b9300fbb06495c6087f975cdbb68a894da37 (diff) |
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>
Diffstat (limited to 'src/notifier/migrations')
-rw-r--r-- | src/notifier/migrations/0006_emailed.py | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/notifier/migrations/0006_emailed.py b/src/notifier/migrations/0006_emailed.py new file mode 100644 index 0000000..22ba9c5 --- /dev/null +++ b/src/notifier/migrations/0006_emailed.py @@ -0,0 +1,24 @@ +# Generated by Django 2.2 on 2019-11-21 18:55 + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + ('booking', '0006_booking_opnfv_config'), + ('notifier', '0005_auto_20190306_1616'), + ] + + operations = [ + migrations.CreateModel( + name='Emailed', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('almost_end_booking', models.OneToOneField(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='warning_mail', to='booking.Booking')), + ('begin_booking', models.OneToOneField(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='begin_mail', to='booking.Booking')), + ('end_booking', models.OneToOneField(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='over_mail', to='booking.Booking')), + ], + ), + ] |