Browse Source

Fixes #2097 (#2103)

pull/2110/head
Edward 7 years ago
committed by GitHub
parent
commit
d13643812a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 20
      sapl/base/migrations/0018_auto_20180801_1652.py
  2. 2
      sapl/base/models.py
  3. 2
      sapl/comissoes/forms.py

20
sapl/base/migrations/0018_auto_20180801_1652.py

@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.9.13 on 2018-08-01 19:52
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('base', '0017_appconfig_cronometro_consideracoes'),
]
operations = [
migrations.AlterField(
model_name='autor',
name='nome',
field=models.CharField(blank=True, max_length=120, verbose_name='Nome do Autor'),
),
]

2
sapl/base/models.py

@ -188,7 +188,7 @@ class Autor(models.Model):
autor_related = GenericForeignKey('content_type', 'object_id')
nome = models.CharField(
max_length=60, blank=True, verbose_name=_('Nome do Autor'))
max_length=120, blank=True, verbose_name=_('Nome do Autor'))
cargo = models.CharField(max_length=50, blank=True)

2
sapl/comissoes/forms.py

@ -242,7 +242,7 @@ class ComissaoForm(forms.ModelForm):
if not self.is_valid():
return self.cleaned_data
if len(self.cleaned_data['nome']) > 50:
if len(self.cleaned_data['nome']) > 100:
msg = _('Nome da Comissão deve ter no máximo 50 caracteres.')
raise ValidationError(msg)
if self.cleaned_data['data_extincao']:

Loading…
Cancel
Save