From 0930810baf56022a49f7b732dcbb74fa723e08bd Mon Sep 17 00:00:00 2001 From: Mariana Mendes Date: Tue, 6 Feb 2018 09:08:23 -0200 Subject: [PATCH] =?UTF-8?q?HOT-FIX:=20Ajusta=20a=20data=20de=20documento?= =?UTF-8?q?=20acess=C3=B3rio?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../migrations/0022_auto_20180206_0908.py | 20 +++++++++++++++++++ sapl/materia/models.py | 3 ++- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 sapl/materia/migrations/0022_auto_20180206_0908.py diff --git a/sapl/materia/migrations/0022_auto_20180206_0908.py b/sapl/materia/migrations/0022_auto_20180206_0908.py new file mode 100644 index 000000000..f91fe6433 --- /dev/null +++ b/sapl/materia/migrations/0022_auto_20180206_0908.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.13 on 2018-02-06 11:08 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('materia', '0021_auto_20180103_1343'), + ] + + operations = [ + migrations.AlterField( + model_name='documentoacessorio', + name='data', + field=models.DateField(blank=True, default=None, null=True, verbose_name='Data'), + ), + ] diff --git a/sapl/materia/models.py b/sapl/materia/models.py index fc1ee43c0..f5f4bf269 100644 --- a/sapl/materia/models.py +++ b/sapl/materia/models.py @@ -416,7 +416,8 @@ class DocumentoAcessorio(models.Model): on_delete=models.PROTECT, verbose_name=_('Tipo')) nome = models.CharField(max_length=50, verbose_name=_('Nome')) - data = models.DateField(blank=True, verbose_name=_('Data')) + + data = models.DateField(blank=True, null=True, default=None, verbose_name=_('Data')) autor = models.CharField( max_length=50, blank=True, verbose_name=_('Autor')) ementa = models.TextField(blank=True, verbose_name=_('Ementa'))