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')