Browse Source

HOT-FIX: tira obrigatoriedade do codigo de casa legislativa

pull/1336/head
Edward Ribeiro 8 years ago
parent
commit
18ee4d583e
  1. 20
      sapl/base/migrations/0005_auto_20170802_1428.py
  2. 5
      sapl/base/models.py

20
sapl/base/migrations/0005_auto_20170802_1428.py

@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.9.11 on 2017-08-02 14:28
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('base', '0004_auto_20170714_1838'),
]
operations = [
migrations.AlterField(
model_name='casalegislativa',
name='codigo',
field=models.CharField(blank=True, max_length=100, null=True, verbose_name='Codigo'),
),
]

5
sapl/base/models.py

@ -18,7 +18,10 @@ class CasaLegislativa(models.Model):
# TODO ajustar todos os max_length !!!!
# cod_casa => id (pk)
codigo = models.CharField(max_length=100, verbose_name=_('Codigo'))
codigo = models.CharField(max_length=100,
blank=True,
null=True,
verbose_name=_('Codigo'))
nome = models.CharField(max_length=100, verbose_name=_('Nome'))
sigla = models.CharField(max_length=100, verbose_name=_('Sigla'))
endereco = models.CharField(max_length=100, verbose_name=_('Endereço'))

Loading…
Cancel
Save