From d9063f62cdb437da13a4f242ee04082801769e22 Mon Sep 17 00:00:00 2001 From: Eduardo Edson Batista Cordeiro Alves Date: Tue, 19 Apr 2016 10:02:33 -0300 Subject: [PATCH] =?UTF-8?q?Arruma=20model=20de=20Tipo=20Mat=C3=A9ria?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- materia/migrations/0028_auto_20160419_1000.py | 25 +++++++++++++++++++ materia/models.py | 4 +-- 2 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 materia/migrations/0028_auto_20160419_1000.py diff --git a/materia/migrations/0028_auto_20160419_1000.py b/materia/migrations/0028_auto_20160419_1000.py new file mode 100644 index 000000000..579eca291 --- /dev/null +++ b/materia/migrations/0028_auto_20160419_1000.py @@ -0,0 +1,25 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9 on 2016-04-19 13:00 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('materia', '0027_auto_20160404_1409'), + ] + + operations = [ + migrations.AlterField( + model_name='tipomaterialegislativa', + name='num_automatica', + field=models.BooleanField(default=False), + ), + migrations.AlterField( + model_name='tipomaterialegislativa', + name='quorum_minimo_votacao', + field=models.PositiveIntegerField(blank=True, null=True), + ), + ] diff --git a/materia/models.py b/materia/models.py index bd007594d..d80d751c4 100644 --- a/materia/models.py +++ b/materia/models.py @@ -12,9 +12,9 @@ class TipoMateriaLegislativa(models.Model): sigla = models.CharField(max_length=5, verbose_name=_('Sigla')) descricao = models.CharField(max_length=50, verbose_name=_('Descrição ')) # XXX o que é isso ? - num_automatica = models.BooleanField() + num_automatica = models.BooleanField(default=False) # XXX o que é isso ? - quorum_minimo_votacao = models.PositiveIntegerField() + quorum_minimo_votacao = models.PositiveIntegerField(blank=True, null=True) class Meta: verbose_name = _('Tipo de Matéria Legislativa')