From d9706a81eaee4efaaf20d8f36ea095314914ae4a Mon Sep 17 00:00:00 2001 From: joaohortsenado <100957576+joaohortsenado@users.noreply.github.com> Date: Sat, 30 Sep 2023 16:53:15 -0300 Subject: [PATCH] feat: add link para materia e comissao na view detail da relatoria (#3682) Co-authored-by: joao --- 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