From 5048919264416884bcc69c4b6d3ccdc7567775ad Mon Sep 17 00:00:00 2001 From: Eduardo Edson Batista Cordeiro Alves Date: Fri, 16 Sep 2016 12:44:37 -0300 Subject: [PATCH] =?UTF-8?q?Adiciona=20default=20em=20ativa=20do=20model=20?= =?UTF-8?q?comiss=C3=A3o?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../migrations/0006_auto_20160916_1243.py | 20 +++++++++++++++++++ sapl/comissoes/models.py | 1 + 2 files changed, 21 insertions(+) create mode 100644 sapl/comissoes/migrations/0006_auto_20160916_1243.py diff --git a/sapl/comissoes/migrations/0006_auto_20160916_1243.py b/sapl/comissoes/migrations/0006_auto_20160916_1243.py new file mode 100644 index 000000000..1c5fcaa9c --- /dev/null +++ b/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?'), + ), + ] diff --git a/sapl/comissoes/models.py b/sapl/comissoes/models.py index 304456c8f..3be814355 100644 --- a/sapl/comissoes/models.py +++ b/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: