From edff5601e62b590826408cbbae879a851bfc656f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Rodrigues?= Date: Mon, 13 Apr 2020 09:54:53 -0300 Subject: [PATCH] Fix #3134 - Aumenta tam max de sigla de partido (#3135) --- .../migrations/0031_auto_20200407_1406.py | 20 +++++++++++++++++++ sapl/parlamentares/models.py | 10 ++-------- 2 files changed, 22 insertions(+), 8 deletions(-) create mode 100644 sapl/parlamentares/migrations/0031_auto_20200407_1406.py diff --git a/sapl/parlamentares/migrations/0031_auto_20200407_1406.py b/sapl/parlamentares/migrations/0031_auto_20200407_1406.py new file mode 100644 index 000000000..874ea6733 --- /dev/null +++ b/sapl/parlamentares/migrations/0031_auto_20200407_1406.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.11.29 on 2020-04-07 17:06 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('parlamentares', '0030_auto_20190613_1133'), + ] + + operations = [ + migrations.AlterField( + model_name='partido', + name='sigla', + field=models.CharField(max_length=20, verbose_name='Sigla'), + ), + ] diff --git a/sapl/parlamentares/models.py b/sapl/parlamentares/models.py index dbe012eff..a56a7de9b 100644 --- a/sapl/parlamentares/models.py +++ b/sapl/parlamentares/models.py @@ -103,14 +103,8 @@ def logo_upload_path(instance, filename): @reversion.register() class Partido(models.Model): - sigla = models.CharField( - max_length=9, - verbose_name=_('Sigla') - ) - nome = models.CharField( - max_length=50, - verbose_name=_('Nome') - ) + sigla = models.CharField(max_length=20, verbose_name=_('Sigla')) + nome = models.CharField(max_length=50, verbose_name=_('Nome')) data_criacao = models.DateField( blank=True, null=True,