Browse Source

Fixes #1699, tirando obrigatoriedade de campo (#1702)

pull/1703/head
Edward 7 years ago
committed by GitHub
parent
commit
2e4e693807
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 20
      sapl/parlamentares/migrations/0018_auto_20180215_1015.py
  2. 5
      sapl/parlamentares/models.py

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

5
sapl/parlamentares/models.py

@ -435,8 +435,9 @@ class Mandato(models.Model):
null=True) null=True)
votos_recebidos = models.PositiveIntegerField( votos_recebidos = models.PositiveIntegerField(
blank=True, null=True, verbose_name=_('Votos Recebidos (Mandato)')) blank=True, null=True, verbose_name=_('Votos Recebidos (Mandato)'))
data_expedicao_diploma = models.DateField( data_expedicao_diploma = models.DateField(blank=True,
verbose_name=_('Expedição do Diploma')) null=True,
verbose_name=_('Expedição do Diploma'))
titular = models.BooleanField( titular = models.BooleanField(
db_index=True, db_index=True,
default=True, default=True,

Loading…
Cancel
Save