From daee4f6a1f4c0b544a724af39a12ba9310bb0ad4 Mon Sep 17 00:00:00 2001 From: Edward Ribeiro Date: Fri, 18 Mar 2016 15:06:22 -0300 Subject: [PATCH] Define default de unidade_deliberativa (um campo de uso futuro) como False --- .../migrations/0014_auto_20160318_1504.py | 20 +++++++++++++++++++ parlamentares/models.py | 2 +- .../migrations/0011_auto_20160318_1504.py | 20 +++++++++++++++++++ 3 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 parlamentares/migrations/0014_auto_20160318_1504.py create mode 100644 protocoloadm/migrations/0011_auto_20160318_1504.py diff --git a/parlamentares/migrations/0014_auto_20160318_1504.py b/parlamentares/migrations/0014_auto_20160318_1504.py new file mode 100644 index 000000000..86170086d --- /dev/null +++ b/parlamentares/migrations/0014_auto_20160318_1504.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9 on 2016-03-18 18:04 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('parlamentares', '0013_merge'), + ] + + operations = [ + migrations.AlterField( + model_name='parlamentar', + name='unidade_deliberativa', + field=models.BooleanField(default=False, verbose_name='Unidade Deliberativa'), + ), + ] diff --git a/parlamentares/models.py b/parlamentares/models.py index 23f74aa17..2114dbe23 100644 --- a/parlamentares/models.py +++ b/parlamentares/models.py @@ -238,7 +238,7 @@ class Parlamentar(models.Model): biografia = models.TextField( blank=True, verbose_name=_('Biografia')) # XXX Esse atribuito foi colocado aqui para não atrapalhar a migração - unidade_deliberativa = models.BooleanField( + unidade_deliberativa = models.BooleanField(default=False, verbose_name=_('Unidade Deliberativa')) fotografia = models.ImageField( blank=True, diff --git a/protocoloadm/migrations/0011_auto_20160318_1504.py b/protocoloadm/migrations/0011_auto_20160318_1504.py new file mode 100644 index 000000000..e887fafb5 --- /dev/null +++ b/protocoloadm/migrations/0011_auto_20160318_1504.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9 on 2016-03-18 18:04 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('protocoloadm', '0010_auto_20160309_1407'), + ] + + operations = [ + migrations.AlterField( + model_name='protocolo', + name='justificativa_anulacao', + field=models.CharField(blank=True, max_length=60, verbose_name='Motivo'), + ), + ]