diff --git a/sapl/base/migrations/0018_auto_20180801_1652.py b/sapl/base/migrations/0018_auto_20180801_1652.py new file mode 100644 index 000000000..d2f758105 --- /dev/null +++ b/sapl/base/migrations/0018_auto_20180801_1652.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.13 on 2018-08-01 19:52 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('base', '0017_appconfig_cronometro_consideracoes'), + ] + + operations = [ + migrations.AlterField( + model_name='autor', + name='nome', + field=models.CharField(blank=True, max_length=120, verbose_name='Nome do Autor'), + ), + ] diff --git a/sapl/base/models.py b/sapl/base/models.py index bbc03b6c7..fbfadd835 100644 --- a/sapl/base/models.py +++ b/sapl/base/models.py @@ -188,7 +188,7 @@ class Autor(models.Model): autor_related = GenericForeignKey('content_type', 'object_id') nome = models.CharField( - max_length=60, blank=True, verbose_name=_('Nome do Autor')) + max_length=120, blank=True, verbose_name=_('Nome do Autor')) cargo = models.CharField(max_length=50, blank=True) diff --git a/sapl/comissoes/forms.py b/sapl/comissoes/forms.py index db1822e4a..fc81b3510 100644 --- a/sapl/comissoes/forms.py +++ b/sapl/comissoes/forms.py @@ -242,7 +242,7 @@ class ComissaoForm(forms.ModelForm): if not self.is_valid(): return self.cleaned_data - if len(self.cleaned_data['nome']) > 50: + if len(self.cleaned_data['nome']) > 100: msg = _('Nome da Comissão deve ter no máximo 50 caracteres.') raise ValidationError(msg) if self.cleaned_data['data_extincao']: