From 856c308941c8989dc2ab7406853f114f3ec86b2a Mon Sep 17 00:00:00 2001 From: Vaibhav Mule <vaibhavmule135@gmail.com> Date: Thu, 19 Mar 2020 18:04:19 +0530 Subject: [PATCH] fix migrations file --- hypha/apply/funds/migrations/0073_reminder.py | 4 ++-- hypha/apply/funds/models/reminders.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/hypha/apply/funds/migrations/0073_reminder.py b/hypha/apply/funds/migrations/0073_reminder.py index 80b187455..5ec67fc4a 100644 --- a/hypha/apply/funds/migrations/0073_reminder.py +++ b/hypha/apply/funds/migrations/0073_reminder.py @@ -1,4 +1,4 @@ -# Generated by Django 2.2.11 on 2020-03-19 10:24 +# Generated by Django 2.2.11 on 2020-03-19 12:31 from django.conf import settings from django.db import migrations, models @@ -18,7 +18,7 @@ class Migration(migrations.Migration): fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('time', models.DateTimeField()), - ('action', models.CharField(choices=[('reviewers_review', 'Remind reviewers to Review')], max_length=50)), + ('action', models.CharField(choices=[('reviewers_review', 'Remind reviewers to Review')], default='reviewers_review', max_length=50)), ('medium', models.CharField(choices=[('email', 'Email')], default='email', max_length=15)), ('sent', models.BooleanField(default=False)), ('submission', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='reminders', to='funds.ApplicationSubmission')), diff --git a/hypha/apply/funds/models/reminders.py b/hypha/apply/funds/models/reminders.py index 92cfbcc14..919699d00 100644 --- a/hypha/apply/funds/models/reminders.py +++ b/hypha/apply/funds/models/reminders.py @@ -29,6 +29,7 @@ class Reminder(models.Model): time = models.DateTimeField() action = models.CharField( choices=ACTIONS.items(), + default=REVIEW, max_length=50, ) medium = models.CharField( -- GitLab