From 86b6838dd85810639c5f4dba5e6794a3c49d9e4e Mon Sep 17 00:00:00 2001 From: joao Date: Fri, 29 Sep 2023 09:04:27 -0400 Subject: [PATCH] feat: add link para materia e comissao na view detail da relatoria --- sapl/materia/models.py | 4 +++- sapl/templates/materia/layouts.yaml | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/sapl/materia/models.py b/sapl/materia/models.py index 14b62196b..4c4109354 100644 --- a/sapl/materia/models.py +++ b/sapl/materia/models.py @@ -690,7 +690,9 @@ class TipoFimRelatoria(models.Model): class Relatoria(models.Model): - materia = models.ForeignKey(MateriaLegislativa, on_delete=models.CASCADE) + materia = models.ForeignKey(MateriaLegislativa, + on_delete=models.CASCADE, + verbose_name=_('Matéria')) parlamentar = models.ForeignKey(Parlamentar, on_delete=models.CASCADE, verbose_name=_('Parlamentar')) diff --git a/sapl/templates/materia/layouts.yaml b/sapl/templates/materia/layouts.yaml index f92535df5..202772737 100644 --- a/sapl/templates/materia/layouts.yaml +++ b/sapl/templates/materia/layouts.yaml @@ -86,7 +86,8 @@ Orgao: Relatoria: {% trans 'Relatoria' %}: - - comissao + - comissao|fk_urlize_for_detail + - materia|fk_urlize_for_detail - data_designacao_relator data_destituicao_relator - parlamentar tipo_fim_relatoria