diff --git a/sapl/parlamentares/migrations/0012_auto_20171020_1045.py b/sapl/parlamentares/migrations/0012_auto_20171020_1045.py new file mode 100644 index 000000000..a1915ed92 --- /dev/null +++ b/sapl/parlamentares/migrations/0012_auto_20171020_1045.py @@ -0,0 +1,25 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.11 on 2017-10-20 12:45 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('parlamentares', '0011_auto_20171010_1433'), + ] + + operations = [ + migrations.AlterField( + model_name='dependente', + name='nome', + field=models.CharField(max_length=150, verbose_name='Nome'), + ), + migrations.AlterField( + model_name='tipodependente', + name='descricao', + field=models.CharField(max_length=150, verbose_name='Descrição'), + ), + ] diff --git a/sapl/parlamentares/models.py b/sapl/parlamentares/models.py index 36b19158b..2162c73b6 100644 --- a/sapl/parlamentares/models.py +++ b/sapl/parlamentares/models.py @@ -356,7 +356,7 @@ class Parlamentar(models.Model): @reversion.register() class TipoDependente(models.Model): - descricao = models.CharField(max_length=50, verbose_name=_('Descrição')) + descricao = models.CharField(max_length=150, verbose_name=_('Descrição')) class Meta: verbose_name = _('Tipo de Dependente') @@ -377,7 +377,7 @@ class Dependente(models.Model): tipo = models.ForeignKey(TipoDependente, on_delete=models.PROTECT, verbose_name=_('Tipo')) parlamentar = models.ForeignKey(Parlamentar, on_delete=models.PROTECT) - nome = models.CharField(max_length=50, verbose_name=_('Nome')) + nome = models.CharField(max_length=150, verbose_name=_('Nome')) sexo = models.CharField( max_length=1, verbose_name=_('Sexo'), choices=SEXO_CHOICE) data_nascimento = models.DateField(