From 268a666577304b1115f3f7204c99d136d1264c52 Mon Sep 17 00:00:00 2001 From: Eduardo Edson Batista Cordeiro Alves Date: Thu, 27 Oct 2016 14:33:15 -0200 Subject: [PATCH] Adiciona verbose name no campo assuntos --- .../migrations/0017_auto_20161027_1432.py | 20 +++++++++++++++++++ sapl/norma/models.py | 1 + sapl/templates/norma/layouts.yaml | 1 + 3 files changed, 22 insertions(+) create mode 100644 sapl/norma/migrations/0017_auto_20161027_1432.py diff --git a/sapl/norma/migrations/0017_auto_20161027_1432.py b/sapl/norma/migrations/0017_auto_20161027_1432.py new file mode 100644 index 000000000..93208eb69 --- /dev/null +++ b/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'), + ), + ] diff --git a/sapl/norma/models.py b/sapl/norma/models.py index 7b8b035a6..7a3fdbc3e 100644 --- a/sapl/norma/models.py +++ b/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() diff --git a/sapl/templates/norma/layouts.yaml b/sapl/templates/norma/layouts.yaml index 30ad24dc8..f52d65102 100644 --- a/sapl/templates/norma/layouts.yaml +++ b/sapl/templates/norma/layouts.yaml @@ -22,6 +22,7 @@ NormaJuridica: - ementa - indexacao - observacao + - assuntos NormaJuridicaCreate: {% trans 'Identificação Básica' %}: