diff --git a/sapl/parlamentares/migrations/0011_auto_20171010_1433.py b/sapl/parlamentares/migrations/0011_auto_20171010_1433.py new file mode 100644 index 000000000..bba5cfc99 --- /dev/null +++ b/sapl/parlamentares/migrations/0011_auto_20171010_1433.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.3 on 2017-10-10 17:33 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('parlamentares', '0010_corrige_data_inicio_mandato'), + ] + + operations = [ + migrations.AlterField( + model_name='mandato', + name='data_inicio_mandato', + field=models.DateField(null=True, verbose_name='Início do Mandato'), + ), + ] diff --git a/sapl/parlamentares/models.py b/sapl/parlamentares/models.py index 64ae92c8e..36b19158b 100644 --- a/sapl/parlamentares/models.py +++ b/sapl/parlamentares/models.py @@ -453,7 +453,7 @@ class Mandato(models.Model): # TODO what is this field?????? tipo_causa_fim_mandato = models.PositiveIntegerField(blank=True, null=True) data_inicio_mandato = models.DateField(verbose_name=_('Início do Mandato'), - blank=True, + blank=False, null=True) data_fim_mandato = models.DateField(verbose_name=_('Fim do Mandato'), blank=True,