Browse Source

Fix #2279 (#2280)

pull/2287/head
Victor Fabre 6 years ago
committed by Edward
parent
commit
86e5bda7d6
  1. 20
      sapl/compilacao/migrations/0010_auto_20181004_1939.py
  2. 3
      sapl/compilacao/models.py

20
sapl/compilacao/migrations/0010_auto_20181004_1939.py

@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.9.13 on 2018-10-04 22:39
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('compilacao', '0009_auto_20180926_1015'),
]
operations = [
migrations.AlterField(
model_name='textoarticulado',
name='numero',
field=models.CharField(max_length=8, verbose_name='Número'),
),
]

3
sapl/compilacao/models.py

@ -186,7 +186,8 @@ class TextoArticulado(TimestampedMixin):
data = models.DateField(blank=True, null=True, verbose_name=_('Data'))
ementa = models.TextField(verbose_name=_('Ementa'))
observacao = models.TextField(blank=True, verbose_name=_('Observação'))
numero = models.PositiveIntegerField(verbose_name=_('Número'))
numero = models.CharField(
max_length=8,verbose_name=_('Número'))
ano = models.PositiveSmallIntegerField(verbose_name=_('Ano'))
tipo_ta = models.ForeignKey(
TipoTextoArticulado,

Loading…
Cancel
Save