From 2723c9cbd3357bdce4b345c950cb3186638fb60f 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 | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) 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 9f4cc4138..03d374e19 100644 --- a/sapl/parlamentares/models.py +++ b/sapl/parlamentares/models.py @@ -104,7 +104,7 @@ def logo_upload_path(instance, filename): @reversion.register() class Partido(models.Model): - sigla = models.CharField(max_length=9, verbose_name=_('Sigla')) + 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, verbose_name=_('Data Criação'))