From 6be40a5f2d75b157cf2a2374f2f866f6fdc92b18 Mon Sep 17 00:00:00 2001 From: Brandon Lo Date: Tue, 26 Nov 2019 16:39:26 -0500 Subject: 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 --- src/notifier/migrations/0006_emailed.py | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/notifier/migrations/0006_emailed.py (limited to 'src/notifier/migrations/0006_emailed.py') 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')), + ], + ), + ] -- cgit 1.2.3-korg