From 7a8881c30599ddb6d3ff59b8d5c61ad4f3ae9b38 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Mon, 17 Jul 2017 21:23:59 -0400 Subject: [PATCH] Increase the size of the mailing profile label field to 128 characters. Signed-off-by: Roberto Rosario --- HISTORY.rst | 1 + docs/releases/2.6.rst | 1 + .../migrations/0005_auto_20170718_0123.py | 20 +++++++++++++++++++ mayan/apps/mailer/models.py | 2 +- 4 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 mayan/apps/mailer/migrations/0005_auto_20170718_0123.py diff --git a/HISTORY.rst b/HISTORY.rst index ab7dcf2908..c23fd101ee 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -21,6 +21,7 @@ - Add support for granting the document type edit, document type delete, and document type view permissions to individual document type instances. - Improved tests by testing for accesses. +- Increase the size of the mailing profile label field to 128 characters. 2.5.2 (2017-07-08) ================== diff --git a/docs/releases/2.6.rst b/docs/releases/2.6.rst index cc9ace2ddd..2f99f40e06 100644 --- a/docs/releases/2.6.rst +++ b/docs/releases/2.6.rst @@ -80,6 +80,7 @@ Other Changes - Sort indexes by label. - Switch the order of the DEFAULT_AUTHENTICATION_CLASSES of DRF. GitLab #400. - Improve code to unbind menu entries. +- Increase the size of the mailing profile label field to 128 characters. Removals -------- diff --git a/mayan/apps/mailer/migrations/0005_auto_20170718_0123.py b/mayan/apps/mailer/migrations/0005_auto_20170718_0123.py new file mode 100644 index 0000000000..353a2876b6 --- /dev/null +++ b/mayan/apps/mailer/migrations/0005_auto_20170718_0123.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.10.7 on 2017-07-18 01:23 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('mailer', '0004_auto_20170714_2133'), + ] + + operations = [ + migrations.AlterField( + model_name='usermailer', + name='label', + field=models.CharField(max_length=128, unique=True, verbose_name='Label'), + ), + ] diff --git a/mayan/apps/mailer/models.py b/mayan/apps/mailer/models.py index 960b1d5dbc..790abd5a12 100644 --- a/mayan/apps/mailer/models.py +++ b/mayan/apps/mailer/models.py @@ -30,7 +30,7 @@ class LogEntry(models.Model): class UserMailer(models.Model): label = models.CharField( - max_length=32, unique=True, verbose_name=_('Label') + max_length=128, unique=True, verbose_name=_('Label') ) default = models.BooleanField( default=True, help_text=_(