Browse Source

Adiciona default em ativa do model comissão

pull/587/head
Eduardo Edson Batista Cordeiro Alves 8 years ago
parent
commit
5048919264
  1. 20
      sapl/comissoes/migrations/0006_auto_20160916_1243.py
  2. 1
      sapl/comissoes/models.py

20
sapl/comissoes/migrations/0006_auto_20160916_1243.py

@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-09-16 15:43
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('comissoes', '0005_comissao_ativa'),
]
operations = [
migrations.AlterField(
model_name='comissao',
name='ativa',
field=models.BooleanField(choices=[(True, 'Sim'), (False, 'Não')], default=True, verbose_name='Comissão Ativa?'),
),
]

1
sapl/comissoes/models.py

@ -75,6 +75,7 @@ class Comissao(models.Model):
verbose_name=_('Unidade Deliberativa'))
ativa = models.BooleanField(
choices=YES_NO_CHOICES,
default=True,
verbose_name=_('Comissão Ativa?'))
class Meta:

Loading…
Cancel
Save