Browse Source

Merge pull request #1375 from interlegis/953-max_length-comissao

fix #953 - Valor máximo do campo nome
pull/1374/merge
Luciano Henrique Nunes de Almeida 7 years ago
committed by GitHub
parent
commit
fd7116ef20
  1. 20
      sapl/comissoes/migrations/0002_auto_20170809_1236.py
  2. 2
      sapl/comissoes/models.py

20
sapl/comissoes/migrations/0002_auto_20170809_1236.py

@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.9.12 on 2017-08-09 12:36
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('comissoes', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='comissao',
name='nome',
field=models.CharField(max_length=100, verbose_name='Nome'),
),
]

2
sapl/comissoes/models.py

@ -35,7 +35,7 @@ class Comissao(models.Model):
tipo = models.ForeignKey(TipoComissao,
on_delete=models.PROTECT,
verbose_name=_('Tipo'))
nome = models.CharField(max_length=60, verbose_name=_('Nome'))
nome = models.CharField(max_length=100, verbose_name=_('Nome'))
sigla = models.CharField(max_length=10, verbose_name=_('Sigla'))
data_criacao = models.DateField(verbose_name=_('Data de Criação'))
data_extincao = models.DateField(

Loading…
Cancel
Save