Browse Source

HOT-FIX: aumenta capacidade de campo CharField

pull/3042/head
Edward Ribeiro 5 years ago
parent
commit
f199b2f031
  1. 20
      sapl/comissoes/migrations/0022_auto_20191118_2036.py
  2. 2
      sapl/comissoes/models.py
  3. 2
      sapl/materia/forms.py
  4. 20
      sapl/materia/migrations/0061_auto_20191118_2036.py
  5. 2
      sapl/materia/models.py
  6. 20
      sapl/protocoloadm/migrations/0026_auto_20191118_2036.py
  7. 2
      sapl/protocoloadm/models.py

20
sapl/comissoes/migrations/0022_auto_20191118_2036.py

@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.20 on 2019-11-18 23:36
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('comissoes', '0021_auto_20191001_1115'),
]
operations = [
migrations.AlterField(
model_name='documentoacessorio',
name='autor',
field=models.CharField(max_length=200, verbose_name='Autor'),
),
]

2
sapl/comissoes/models.py

@ -317,7 +317,7 @@ class DocumentoAcessorio(models.Model):
data = models.DateField(blank=True, null=True,
default=None, verbose_name=_('Data'))
autor = models.CharField(
max_length=100, verbose_name=_('Autor'))
max_length=200, verbose_name=_('Autor'))
ementa = models.TextField(blank=True, verbose_name=_('Ementa'))
indexacao = models.TextField(blank=True)
arquivo = models.FileField(

2
sapl/materia/forms.py

@ -2465,7 +2465,7 @@ class ConfirmarProposicaoForm(ProposicaoForm):
# dados básicos
doc = DocumentoAcessorio()
doc.materia = proposicao.materia_de_vinculo
doc.autor = str(proposicao.autor)
doc.autor = str(proposicao.autor)[:200]
doc.tipo = proposicao.tipo.tipo_conteudo_related
doc.ementa = proposicao.descricao

20
sapl/materia/migrations/0061_auto_20191118_2036.py

@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.20 on 2019-11-18 23:36
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('materia', '0060_auto_20190930_1136'),
]
operations = [
migrations.AlterField(
model_name='documentoacessorio',
name='autor',
field=models.CharField(blank=True, max_length=200, verbose_name='Autor'),
),
]

2
sapl/materia/models.py

@ -535,7 +535,7 @@ class DocumentoAcessorio(models.Model):
data = models.DateField(blank=True, null=True,
default=None, verbose_name=_('Data'))
autor = models.CharField(
max_length=50, blank=True, verbose_name=_('Autor'))
max_length=200, blank=True, verbose_name=_('Autor'))
ementa = models.TextField(blank=True, verbose_name=_('Ementa'))
indexacao = models.TextField(blank=True)
arquivo = models.FileField(

20
sapl/protocoloadm/migrations/0026_auto_20191118_2036.py

@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.20 on 2019-11-18 23:36
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('protocoloadm', '0025_auto_20191001_1115'),
]
operations = [
migrations.AlterField(
model_name='documentoacessorioadministrativo',
name='autor',
field=models.CharField(blank=True, max_length=200, verbose_name='Autor'),
),
]

2
sapl/protocoloadm/models.py

@ -240,7 +240,7 @@ class DocumentoAcessorioAdministrativo(models.Model):
verbose_name=_('Arquivo'))
data = models.DateField(blank=True, null=True, verbose_name=_('Data'))
autor = models.CharField(
max_length=50, blank=True, verbose_name=_('Autor'))
max_length=200, blank=True, verbose_name=_('Autor'))
assunto = models.TextField(
blank=True, verbose_name=_('Assunto'))
indexacao = models.TextField(blank=True)

Loading…
Cancel
Save