Browse Source

feat: add link para materia e comissao na view detail da relatoria (#3682)

Co-authored-by: joao <joao@mezzoplanejamento.com.br>
pull/3685/head
joaohortsenado 1 year ago
committed by GitHub
parent
commit
d9706a81ea
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      sapl/materia/models.py
  2. 3
      sapl/templates/materia/layouts.yaml

4
sapl/materia/models.py

@ -690,7 +690,9 @@ class TipoFimRelatoria(models.Model):
class Relatoria(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, parlamentar = models.ForeignKey(Parlamentar,
on_delete=models.CASCADE, on_delete=models.CASCADE,
verbose_name=_('Parlamentar')) verbose_name=_('Parlamentar'))

3
sapl/templates/materia/layouts.yaml

@ -86,7 +86,8 @@ Orgao:
Relatoria: Relatoria:
{% trans 'Relatoria' %}: {% trans 'Relatoria' %}:
- comissao - comissao|fk_urlize_for_detail
- materia|fk_urlize_for_detail
- data_designacao_relator data_destituicao_relator - data_designacao_relator data_destituicao_relator
- parlamentar tipo_fim_relatoria - parlamentar tipo_fim_relatoria

Loading…
Cancel
Save