diff --git a/sapl/materia/migrations/0054_auto_20161011_0904.py b/sapl/materia/migrations/0054_auto_20161011_0904.py new file mode 100644 index 000000000..c4a2b34bb --- /dev/null +++ b/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?'), + ), + ] diff --git a/sapl/materia/models.py b/sapl/materia/models.py index e4828d1a8..e43e08f24 100644 --- a/sapl/materia/models.py +++ b/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(