From 2e4e69380747f2666230112b9da5996fc2cb8372 Mon Sep 17 00:00:00 2001 From: Edward Date: Thu, 15 Feb 2018 10:18:13 -0200 Subject: [PATCH] Fixes #1699, tirando obrigatoriedade de campo (#1702) --- .../migrations/0018_auto_20180215_1015.py | 20 +++++++++++++++++++ sapl/parlamentares/models.py | 5 +++-- 2 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 sapl/parlamentares/migrations/0018_auto_20180215_1015.py diff --git a/sapl/parlamentares/migrations/0018_auto_20180215_1015.py b/sapl/parlamentares/migrations/0018_auto_20180215_1015.py new file mode 100644 index 000000000..dfbfd6725 --- /dev/null +++ b/sapl/parlamentares/migrations/0018_auto_20180215_1015.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.11 on 2018-02-15 12:15 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('parlamentares', '0017_auto_20180202_1528'), + ] + + operations = [ + migrations.AlterField( + model_name='mandato', + name='data_expedicao_diploma', + field=models.DateField(blank=True, null=True, verbose_name='Expedição do Diploma'), + ), + ] diff --git a/sapl/parlamentares/models.py b/sapl/parlamentares/models.py index 47cc44954..fc8c22b5e 100644 --- a/sapl/parlamentares/models.py +++ b/sapl/parlamentares/models.py @@ -435,8 +435,9 @@ class Mandato(models.Model): null=True) votos_recebidos = models.PositiveIntegerField( blank=True, null=True, verbose_name=_('Votos Recebidos (Mandato)')) - data_expedicao_diploma = models.DateField( - verbose_name=_('Expedição do Diploma')) + data_expedicao_diploma = models.DateField(blank=True, + null=True, + verbose_name=_('Expedição do Diploma')) titular = models.BooleanField( db_index=True, default=True,