diff --git a/materia/migrations/0002_auto_20150619_1807.py b/materia/migrations/0002_auto_20150619_1807.py new file mode 100644 index 000000000..a854422d9 --- /dev/null +++ b/materia/migrations/0002_auto_20150619_1807.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import models, migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('materia', '0001_initial'), + ] + + operations = [ + migrations.AlterField( + model_name='proposicao', + name='data_envio', + field=models.DateTimeField(null=True), + ), + ] diff --git a/materia/models.py b/materia/models.py index 17bd0357d..bd61f4722 100644 --- a/materia/models.py +++ b/materia/models.py @@ -163,7 +163,8 @@ class Proposicao(models.Model): materia = models.ForeignKey(MateriaLegislativa, blank=True, null=True) # cod_materia autor = models.ForeignKey(Autor) # cod_autor tipo = models.ForeignKey(TipoProposicao) # tip_proposicao - data_envio = models.DateTimeField() # dat_envio + # XXX data_envio was not null, but actual data said otherwise!!! + data_envio = models.DateTimeField(null=True) # dat_envio data_recebimento = models.DateTimeField(blank=True, null=True) # dat_recebimento txt_descricao = models.CharField(max_length=100) # txt_descricao cod_mat_ou_doc = models.IntegerField(blank=True, null=True) # cod_mat_ou_doc