Browse Source

HOT-FIX: Ajusta a data de documento acessório

pull/1698/head
Mariana Mendes 7 years ago
parent
commit
0930810baf
  1. 20
      sapl/materia/migrations/0022_auto_20180206_0908.py
  2. 3
      sapl/materia/models.py

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

3
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'))

Loading…
Cancel
Save