diff --git a/HISTORY.rst b/HISTORY.rst index c01c4062b1..c7e053df65 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -155,6 +155,8 @@ ModelAttribute for executable model attributes and ModelField for actual ORM fields. - Expose more document fields for use in smart links. +- The size of the document type label field has been increased + from 32 to 96 characters. 3.0.3 (2018-08-17) ================== diff --git a/docs/releases/3.1.rst b/docs/releases/3.1.rst index ed834f2d46..fddc5f79aa 100644 --- a/docs/releases/3.1.rst +++ b/docs/releases/3.1.rst @@ -371,7 +371,8 @@ classes beyond the provide line chart. ModelAttribute for executable model attributes and ModelField for actual ORM fields. - Expose more document fields for use in smart links. - +- The size of the document type label field has been increased + from 32 to 96 characters. Removals -------- diff --git a/mayan/apps/documents/migrations/0046_auto_20180917_0713.py b/mayan/apps/documents/migrations/0046_auto_20180917_0713.py new file mode 100644 index 0000000000..7e2ceda47f --- /dev/null +++ b/mayan/apps/documents/migrations/0046_auto_20180917_0713.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.11.11 on 2018-09-17 07:13 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('documents', '0045_auto_20180917_0645'), + ] + + operations = [ + migrations.AlterField( + model_name='documenttype', + name='label', + field=models.CharField(help_text='The name of the document type.', max_length=96, unique=True, verbose_name='Label'), + ), + ] diff --git a/mayan/apps/documents/models.py b/mayan/apps/documents/models.py index c204c2ba7a..2df15eceed 100644 --- a/mayan/apps/documents/models.py +++ b/mayan/apps/documents/models.py @@ -70,7 +70,7 @@ class DocumentType(models.Model): properties can be attached """ label = models.CharField( - help_text=_('The name of the document type.'), max_length=32, + help_text=_('The name of the document type.'), max_length=96, unique=True, verbose_name=_('Label') ) trash_time_period = models.PositiveIntegerField(