Browse Source

Arruma model de Tipo Matéria

pull/336/head
Eduardo Edson Batista Cordeiro Alves 9 years ago
parent
commit
d9063f62cd
  1. 25
      materia/migrations/0028_auto_20160419_1000.py
  2. 4
      materia/models.py

25
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),
),
]

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

Loading…
Cancel
Save