Browse Source

Pequenas alterações nos models e layout de protocoloadm

pull/3482/head
Gustavo Santos 3 years ago
parent
commit
30f3ba4d11
  1. 4
      sapl/protocoloadm/migrations/0039_auto_20211201_1201.py
  2. 2
      sapl/protocoloadm/models.py
  3. 4
      sapl/templates/protocoloadm/layouts.yaml

4
sapl/protocoloadm/migrations/0039_auto_20211105_1005.py → sapl/protocoloadm/migrations/0039_auto_20211201_1201.py

@ -1,4 +1,4 @@
# Generated by Django 2.2.24 on 2021-11-05 13:05
# Generated by Django 2.2.24 on 2021-12-01 15:01
from django.db import migrations, models
import django.db.models.deletion
@ -14,6 +14,6 @@ class Migration(migrations.Migration):
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'),
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, to='base.Autor', verbose_name='Autoria'),
),
]

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, verbose_name=_('Autoria do Documento'))
on_delete=models.PROTECT, verbose_name=_('Autoria'))
dias_prazo = models.PositiveIntegerField(
blank=True, null=True, verbose_name=_('Dias Prazo'))
data_fim_prazo = models.DateField(

4
sapl/templates/protocoloadm/layouts.yaml

@ -5,11 +5,11 @@ TipoDocumentoAdministrativo:
DocumentoAdministrativo:
{% trans 'Identificação Básica' %}:
- tipo autor
- tipo
- numero complemento ano
- data protocolo
- assunto
- interessado tramitacao
- interessado autor tramitacao
- texto_integral|urlize
- documento_anexado_set__documento_principal|m2m_urlize_for_detail
- documento_principal_set__documento_anexado|m2m_urlize_for_detail

Loading…
Cancel
Save