Browse Source

Adiciona verbose name no campo assuntos

pull/772/head
Eduardo Edson Batista Cordeiro Alves 8 years ago
parent
commit
268a666577
  1. 20
      sapl/norma/migrations/0017_auto_20161027_1432.py
  2. 1
      sapl/norma/models.py
  3. 1
      sapl/templates/norma/layouts.yaml

20
sapl/norma/migrations/0017_auto_20161027_1432.py

@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-10-27 14:32
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('norma', '0016_auto_20161027_1419'),
]
operations = [
migrations.AlterField(
model_name='normajuridica',
name='assuntos',
field=models.ManyToManyField(through='norma.AssuntoNormaRelationship', to='norma.AssuntoNorma', verbose_name='Assuntos'),
),
]

1
sapl/norma/models.py

@ -98,6 +98,7 @@ class NormaJuridica(models.Model):
# XXX was a CharField (attention on migrate)
assuntos = models.ManyToManyField(
AssuntoNorma,
verbose_name=_('Assuntos'),
through='AssuntoNormaRelationship')
data_vigencia = models.DateField(blank=True, null=True)
timestamp = models.DateTimeField()

1
sapl/templates/norma/layouts.yaml

@ -22,6 +22,7 @@ NormaJuridica:
- ementa
- indexacao
- observacao
- assuntos
NormaJuridicaCreate:
{% trans 'Identificação Básica' %}:

Loading…
Cancel
Save