From 94aca35190fe6e97b761b2765bee8050fe29eec1 Mon Sep 17 00:00:00 2001 From: Gabriel Detraz Date: Fri, 12 Jul 2019 18:27:12 +0200 Subject: [PATCH] [Reminder] Broaden with textfield and unlimited message for customized end_membership --- .../migrations/0060_auto_20190712_1821.py | 20 +++++++++++++++++++ preferences/models.py | 3 +-- 2 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 preferences/migrations/0060_auto_20190712_1821.py diff --git a/preferences/migrations/0060_auto_20190712_1821.py b/preferences/migrations/0060_auto_20190712_1821.py new file mode 100644 index 00000000..e1eb76e8 --- /dev/null +++ b/preferences/migrations/0060_auto_20190712_1821.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.10.7 on 2019-07-12 16:21 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('preferences', '0059_auto_20190120_1739'), + ] + + operations = [ + migrations.AlterField( + model_name='reminder', + name='message', + field=models.TextField(blank=True, default='', help_text='Message displayed specifically for this reminder', null=True), + ), + ] diff --git a/preferences/models.py b/preferences/models.py index 610f7cdf..be8b8ec2 100644 --- a/preferences/models.py +++ b/preferences/models.py @@ -380,8 +380,7 @@ class Reminder(AclMixin, models.Model): unique=True, help_text=_("Delay between the email and the membership's end") ) - message = models.CharField( - max_length=255, + message = models.TextField( default="", null=True, blank=True,