From e4cb078e0e65ec1a843f6e5e5a7fdb8ed361cbeb Mon Sep 17 00:00:00 2001 From: Eduardo Calil Date: Tue, 10 Oct 2017 14:42:10 -0300 Subject: [PATCH] Fix #1525 --- .../migrations/0011_auto_20171010_1433.py | 20 +++++++++++++++++++ sapl/parlamentares/models.py | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 sapl/parlamentares/migrations/0011_auto_20171010_1433.py 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,