Browse Source

Transforma campo 'titular' de 'participacao' em choice

pull/726/head
Eduardo Edson Batista Cordeiro Alves 8 years ago
parent
commit
6c448460d4
  1. 20
      sapl/comissoes/migrations/0009_auto_20161011_0843.py
  2. 5
      sapl/comissoes/models.py

20
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'),
),
]

5
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,

Loading…
Cancel
Save