Browse Source

Fix #1525

pull/1537/head
Eduardo Calil 7 years ago
parent
commit
e4cb078e0e
  1. 20
      sapl/parlamentares/migrations/0011_auto_20171010_1433.py
  2. 2
      sapl/parlamentares/models.py

20
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'),
),
]

2
sapl/parlamentares/models.py

@ -453,7 +453,7 @@ class Mandato(models.Model):
# TODO what is this field?????? # TODO what is this field??????
tipo_causa_fim_mandato = models.PositiveIntegerField(blank=True, null=True) tipo_causa_fim_mandato = models.PositiveIntegerField(blank=True, null=True)
data_inicio_mandato = models.DateField(verbose_name=_('Início do Mandato'), data_inicio_mandato = models.DateField(verbose_name=_('Início do Mandato'),
blank=True, blank=False,
null=True) null=True)
data_fim_mandato = models.DateField(verbose_name=_('Fim do Mandato'), data_fim_mandato = models.DateField(verbose_name=_('Fim do Mandato'),
blank=True, blank=True,

Loading…
Cancel
Save