Browse Source

Migration de verbose_name Autoria do Documento

pull/3482/head
AlGouvea 3 years ago
committed by Edward Oliveira
parent
commit
82a3449e20
  1. 19
      sapl/protocoloadm/migrations/0039_auto_20211105_1005.py
  2. 2
      sapl/protocoloadm/models.py

19
sapl/protocoloadm/migrations/0039_auto_20211105_1005.py

@ -0,0 +1,19 @@
# Generated by Django 2.2.24 on 2021-11-05 13:05
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('protocoloadm', '0038_auto_20211025_1657'),
]
operations = [
migrations.AlterField(
model_name='documentoadministrativo',
name='autor',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, to='base.Autor', verbose_name='Autoria do Documento'),
),
]

2
sapl/protocoloadm/models.py

@ -175,7 +175,7 @@ class DocumentoAdministrativo(models.Model):
interessado = models.CharField(
max_length=50, blank=True, verbose_name=_('Interessado'))
autor = models.ForeignKey(Autor, blank=True, null=True,
on_delete=models.PROTECT)
on_delete=models.PROTECT, verbose_name=_('Autoria do Documento'))
dias_prazo = models.PositiveIntegerField(
blank=True, null=True, verbose_name=_('Dias Prazo'))
data_fim_prazo = models.DateField(

Loading…
Cancel
Save