aboutsummaryrefslogtreecommitdiffstats
path: root/rrs/migrations
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2018-03-02 08:31:01 +1300
committerPaul Eggleton <paul.eggleton@linux.intel.com>2018-05-04 23:57:53 +1200
commit735353ebd1171aa6e276654586e57c56f17842d5 (patch)
treed244cb34515eb12936fdf004b11a815e949f870f /rrs/migrations
parent0aa4b93d1838a012dc139328ad35fa333ab8a39d (diff)
downloadopenembedded-core-contrib-735353ebd1171aa6e276654586e57c56f17842d5.tar.gz
rrs/models: add fields for more flexible email handling
* Add a flag to say whether emails should be sent * Add fields for from/to/subject (to replace what's currently in settings) * Add user link for administrator to replace the hardcoded values in the email template Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Diffstat (limited to 'rrs/migrations')
-rw-r--r--rrs/migrations/0006_maintplan_email.py41
1 files changed, 41 insertions, 0 deletions
diff --git a/rrs/migrations/0006_maintplan_email.py b/rrs/migrations/0006_maintplan_email.py
new file mode 100644
index 0000000000..161af05a32
--- /dev/null
+++ b/rrs/migrations/0006_maintplan_email.py
@@ -0,0 +1,41 @@
+# -*- coding: utf-8 -*-
+from __future__ import unicode_literals
+
+from django.db import migrations, models
+from django.conf import settings
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ migrations.swappable_dependency(settings.AUTH_USER_MODEL),
+ ('rrs', '0005_release_plan_nonnull'),
+ ]
+
+ operations = [
+ migrations.AddField(
+ model_name='maintenanceplan',
+ name='admin',
+ field=models.ForeignKey(blank=True, null=True, help_text='Plan administrator', to=settings.AUTH_USER_MODEL),
+ ),
+ migrations.AddField(
+ model_name='maintenanceplan',
+ name='email_enabled',
+ field=models.BooleanField(verbose_name='Enable emails', default=False, help_text='Enable automatically sending report emails for this plan'),
+ ),
+ migrations.AddField(
+ model_name='maintenanceplan',
+ name='email_from',
+ field=models.CharField(max_length=255, blank=True, help_text='Sender for automated emails'),
+ ),
+ migrations.AddField(
+ model_name='maintenanceplan',
+ name='email_subject',
+ field=models.CharField(max_length=255, blank=True, default='[Recipe reporting system] Upgradable recipe name list', help_text='Subject line of automated emails'),
+ ),
+ migrations.AddField(
+ model_name='maintenanceplan',
+ name='email_to',
+ field=models.CharField(max_length=255, blank=True, help_text='Recipient for automated emails (separate multiple addresses with ;)'),
+ ),
+ ]