diff --git a/sapl/comissoes/migrations/0009_auto_20161011_0843.py b/sapl/comissoes/migrations/0009_auto_20161011_0843.py new file mode 100644 index 000000000..4fb4fde79 --- /dev/null +++ b/sapl/comissoes/migrations/0009_auto_20161011_0843.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.7 on 2016-10-11 11:43 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('comissoes', '0008_auto_20160929_1611'), + ] + + operations = [ + migrations.AlterField( + model_name='participacao', + name='titular', + field=models.BooleanField(choices=[(True, 'Sim'), (False, 'Não')], default=False, verbose_name='Titular'), + ), + ] diff --git a/sapl/comissoes/models.py b/sapl/comissoes/models.py index ee3f72e6f..2036c76c0 100644 --- a/sapl/comissoes/models.py +++ b/sapl/comissoes/models.py @@ -133,7 +133,10 @@ class Participacao(models.Model): # ComposicaoComissao composicao = models.ForeignKey(Composicao, related_name='participacao_set') parlamentar = models.ForeignKey(Parlamentar) cargo = models.ForeignKey(CargoComissao) - titular = models.BooleanField(verbose_name=_('Titular')) + titular = models.BooleanField( + verbose_name=_('Titular'), + default=False, + choices=YES_NO_CHOICES) data_designacao = models.DateField(verbose_name=_('Data Designação')) data_desligamento = models.DateField(blank=True, null=True,