Browse Source

Fix #3134 - Aumenta tam max de sigla de partido (#3135)

pull/3367/head
João Rodrigues 5 years ago
committed by eribeiro
parent
commit
edff5601e6
  1. 20
      sapl/parlamentares/migrations/0031_auto_20200407_1406.py
  2. 10
      sapl/parlamentares/models.py

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

10
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,

Loading…
Cancel
Save