Browse Source

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

pull/3132/head
João Rodrigues 5 years ago
committed by GitHub
parent
commit
2723c9cbd3
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 20
      sapl/parlamentares/migrations/0031_auto_20200407_1406.py
  2. 2
      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'),
),
]

2
sapl/parlamentares/models.py

@ -104,7 +104,7 @@ def logo_upload_path(instance, filename):
@reversion.register() @reversion.register()
class Partido(models.Model): 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')) nome = models.CharField(max_length=50, verbose_name=_('Nome'))
data_criacao = models.DateField( data_criacao = models.DateField(
blank=True, null=True, verbose_name=_('Data Criação')) blank=True, null=True, verbose_name=_('Data Criação'))

Loading…
Cancel
Save