Browse Source

Adiciona verbosa name em matéria anexada e matéria principal

pull/1610/head
Mariana Mendes 7 years ago
parent
commit
b932d1e629
  1. 26
      sapl/materia/migrations/0019_auto_20171127_1500.py
  2. 6
      sapl/materia/models.py

26
sapl/materia/migrations/0019_auto_20171127_1500.py

@ -0,0 +1,26 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.9.13 on 2017-11-27 17:00
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('materia', '0018_auto_20171113_1339'),
]
operations = [
migrations.AlterField(
model_name='anexada',
name='materia_anexada',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='materia_anexada_set', to='materia.MateriaLegislativa', verbose_name='Matéria Anexada'),
),
migrations.AlterField(
model_name='anexada',
name='materia_principal',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='materia_principal_set', to='materia.MateriaLegislativa', verbose_name='Matéria Principal'),
),
]

6
sapl/materia/models.py

@ -330,10 +330,12 @@ class AcompanhamentoMateria(models.Model):
class Anexada(models.Model):
materia_principal = models.ForeignKey(
MateriaLegislativa, related_name='materia_principal_set',
on_delete=models.CASCADE)
on_delete=models.CASCADE,
verbose_name=_('Matéria Principal'))
materia_anexada = models.ForeignKey(
MateriaLegislativa, related_name='materia_anexada_set',
on_delete=models.CASCADE)
on_delete=models.CASCADE,
verbose_name=_('Matéria Anexada'))
data_anexacao = models.DateField(verbose_name=_('Data Anexação'))
data_desanexacao = models.DateField(
blank=True, null=True, verbose_name=_('Data Desanexação'))

Loading…
Cancel
Save