Browse Source

Adiciona verbose name nos campos de AssuntoNormaRelationship

pull/772/head
Eduardo Edson Batista Cordeiro Alves 8 years ago
parent
commit
189bb5803a
  1. 26
      sapl/norma/migrations/0018_auto_20161027_1434.py
  2. 4
      sapl/norma/models.py

26
sapl/norma/migrations/0018_auto_20161027_1434.py

@ -0,0 +1,26 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-10-27 14:34
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('norma', '0017_auto_20161027_1432'),
]
operations = [
migrations.AlterField(
model_name='assuntonormarelationship',
name='assunto',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='norma.AssuntoNorma', verbose_name='Assunto'),
),
migrations.AlterField(
model_name='assuntonormarelationship',
name='norma',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='norma.NormaJuridica', verbose_name='Norma'),
),
]

4
sapl/norma/models.py

@ -136,8 +136,8 @@ class NormaJuridica(models.Model):
class AssuntoNormaRelationship(models.Model):
assunto = models.ForeignKey(AssuntoNorma)
norma = models.ForeignKey(NormaJuridica)
assunto = models.ForeignKey(AssuntoNorma, verbose_name=_('Assunto'))
norma = models.ForeignKey(NormaJuridica, verbose_name=_('Norma'))
class Meta:
unique_together = (

Loading…
Cancel
Save