diff --git a/sapl/comissoes/migrations/0022_auto_20191118_2036.py b/sapl/comissoes/migrations/0022_auto_20191118_2036.py new file mode 100644 index 000000000..4d6a90bdc --- /dev/null +++ b/sapl/comissoes/migrations/0022_auto_20191118_2036.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.11.20 on 2019-11-18 23:36 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('comissoes', '0021_auto_20191001_1115'), + ] + + operations = [ + migrations.AlterField( + model_name='documentoacessorio', + name='autor', + field=models.CharField(max_length=200, verbose_name='Autor'), + ), + ] diff --git a/sapl/comissoes/models.py b/sapl/comissoes/models.py index bf876b5ef..5f713f53c 100644 --- a/sapl/comissoes/models.py +++ b/sapl/comissoes/models.py @@ -317,7 +317,7 @@ class DocumentoAcessorio(models.Model): data = models.DateField(blank=True, null=True, default=None, verbose_name=_('Data')) autor = models.CharField( - max_length=100, verbose_name=_('Autor')) + max_length=200, verbose_name=_('Autor')) ementa = models.TextField(blank=True, verbose_name=_('Ementa')) indexacao = models.TextField(blank=True) arquivo = models.FileField( diff --git a/sapl/materia/forms.py b/sapl/materia/forms.py index 64c10fae8..c66723714 100644 --- a/sapl/materia/forms.py +++ b/sapl/materia/forms.py @@ -2465,7 +2465,7 @@ class ConfirmarProposicaoForm(ProposicaoForm): # dados básicos doc = DocumentoAcessorio() doc.materia = proposicao.materia_de_vinculo - doc.autor = str(proposicao.autor) + doc.autor = str(proposicao.autor)[:200] doc.tipo = proposicao.tipo.tipo_conteudo_related doc.ementa = proposicao.descricao diff --git a/sapl/materia/migrations/0061_auto_20191118_2036.py b/sapl/materia/migrations/0061_auto_20191118_2036.py new file mode 100644 index 000000000..adc80e739 --- /dev/null +++ b/sapl/materia/migrations/0061_auto_20191118_2036.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.11.20 on 2019-11-18 23:36 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('materia', '0060_auto_20190930_1136'), + ] + + operations = [ + migrations.AlterField( + model_name='documentoacessorio', + name='autor', + field=models.CharField(blank=True, max_length=200, verbose_name='Autor'), + ), + ] diff --git a/sapl/materia/models.py b/sapl/materia/models.py index f5425363a..168b0c39a 100644 --- a/sapl/materia/models.py +++ b/sapl/materia/models.py @@ -535,7 +535,7 @@ class DocumentoAcessorio(models.Model): data = models.DateField(blank=True, null=True, default=None, verbose_name=_('Data')) autor = models.CharField( - max_length=50, blank=True, verbose_name=_('Autor')) + max_length=200, blank=True, verbose_name=_('Autor')) ementa = models.TextField(blank=True, verbose_name=_('Ementa')) indexacao = models.TextField(blank=True) arquivo = models.FileField( diff --git a/sapl/protocoloadm/migrations/0026_auto_20191118_2036.py b/sapl/protocoloadm/migrations/0026_auto_20191118_2036.py new file mode 100644 index 000000000..18b0f5df5 --- /dev/null +++ b/sapl/protocoloadm/migrations/0026_auto_20191118_2036.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.11.20 on 2019-11-18 23:36 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('protocoloadm', '0025_auto_20191001_1115'), + ] + + operations = [ + migrations.AlterField( + model_name='documentoacessorioadministrativo', + name='autor', + field=models.CharField(blank=True, max_length=200, verbose_name='Autor'), + ), + ] diff --git a/sapl/protocoloadm/models.py b/sapl/protocoloadm/models.py index e4fa79a55..c68a0f344 100644 --- a/sapl/protocoloadm/models.py +++ b/sapl/protocoloadm/models.py @@ -240,7 +240,7 @@ class DocumentoAcessorioAdministrativo(models.Model): verbose_name=_('Arquivo')) data = models.DateField(blank=True, null=True, verbose_name=_('Data')) autor = models.CharField( - max_length=50, blank=True, verbose_name=_('Autor')) + max_length=200, blank=True, verbose_name=_('Autor')) assunto = models.TextField( blank=True, verbose_name=_('Assunto')) indexacao = models.TextField(blank=True)