Browse Source

Aumenta o tamanho de campos de nome e descricao de Dependente e TipoDependente, respectivamente

pull/1554/head
Edward Ribeiro 7 years ago
parent
commit
49f616df31
  1. 25
      sapl/parlamentares/migrations/0012_auto_20171020_1045.py
  2. 4
      sapl/parlamentares/models.py

25
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'),
),
]

4
sapl/parlamentares/models.py

@ -356,7 +356,7 @@ class Parlamentar(models.Model):
@reversion.register() @reversion.register()
class TipoDependente(models.Model): 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: class Meta:
verbose_name = _('Tipo de Dependente') verbose_name = _('Tipo de Dependente')
@ -377,7 +377,7 @@ class Dependente(models.Model):
tipo = models.ForeignKey(TipoDependente, on_delete=models.PROTECT, tipo = models.ForeignKey(TipoDependente, on_delete=models.PROTECT,
verbose_name=_('Tipo')) verbose_name=_('Tipo'))
parlamentar = models.ForeignKey(Parlamentar, on_delete=models.PROTECT) 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( sexo = models.CharField(
max_length=1, verbose_name=_('Sexo'), choices=SEXO_CHOICE) max_length=1, verbose_name=_('Sexo'), choices=SEXO_CHOICE)
data_nascimento = models.DateField( data_nascimento = models.DateField(

Loading…
Cancel
Save