diff --git a/sessao/migrations/0012_auto_20160120_1237.py b/sessao/migrations/0012_auto_20160120_1237.py new file mode 100644 index 000000000..a72740276 --- /dev/null +++ b/sessao/migrations/0012_auto_20160120_1237.py @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import models, migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('sessao', '0011_auto_20160113_1239'), + ] + + operations = [ + migrations.AddField( + model_name='registrovotacao', + name='expediente', + field=models.ForeignKey(blank=True, null=True, to='sessao.ExpedienteMateria'), + ), + migrations.AlterField( + model_name='registrovotacao', + name='ordem', + field=models.ForeignKey(blank=True, null=True, to='sessao.OrdemDia'), + ), + ] diff --git a/sessao/models.py b/sessao/models.py index 832e49b3c..46d255744 100644 --- a/sessao/models.py +++ b/sessao/models.py @@ -235,7 +235,8 @@ class RegistroVotacao(models.Model): tipo_resultado_votacao = models.ForeignKey( TipoResultadoVotacao, verbose_name=_('Resultado da Votação')) materia = models.ForeignKey(MateriaLegislativa) - ordem = models.ForeignKey(OrdemDia) + ordem = models.ForeignKey(OrdemDia, blank=True, null=True) + expediente = models.ForeignKey(ExpedienteMateria, blank=True, null=True) numero_votos_sim = models.PositiveIntegerField(verbose_name=_('Sim')) numero_votos_nao = models.PositiveIntegerField(verbose_name=_('Não')) numero_abstencoes = models.PositiveIntegerField(