Browse Source

Transforma campo 'em_tramitacao' de 'materia' em choice

pull/726/head
Eduardo Edson Batista Cordeiro Alves 8 years ago
parent
commit
a22d287705
  1. 20
      sapl/materia/migrations/0054_auto_20161011_0904.py
  2. 5
      sapl/materia/models.py

20
sapl/materia/migrations/0054_auto_20161011_0904.py

@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-10-11 12:04
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('materia', '0053_auto_20161004_1854'),
]
operations = [
migrations.AlterField(
model_name='materialegislativa',
name='em_tramitacao',
field=models.BooleanField(choices=[(True, 'Sim'), (False, 'Não')], default=False, verbose_name='Em Tramitação?'),
),
]

5
sapl/materia/models.py

@ -106,7 +106,10 @@ class MateriaLegislativa(models.Model):
blank=True, null=True, verbose_name=_('Dias Prazo'))
data_fim_prazo = models.DateField(
blank=True, null=True, verbose_name=_('Data Fim Prazo'))
em_tramitacao = models.BooleanField(verbose_name=_('Em Tramitação?'))
em_tramitacao = models.BooleanField(
verbose_name=_('Em Tramitação?'),
default=False,
choices=YES_NO_CHOICES)
polemica = models.NullBooleanField(
blank=True, verbose_name=_('Matéria Polêmica?'))
objeto = models.CharField(

Loading…
Cancel
Save