From 9f5614384ae06d3fc9f2cbe99e8f51ea3d439e09 Mon Sep 17 00:00:00 2001 From: joaohortsenado <100957576+joaohortsenado@users.noreply.github.com> Date: Sun, 25 Jun 2023 19:37:11 -0300 Subject: [PATCH] feat: Torna o campo Data Nascimento de Parlamentares sensivel (#3648) Co-authored-by: joao --- sapl/api/serializers.py | 2 +- .../templates/parlamentares/parlamentar_perfil_publico.html | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/sapl/api/serializers.py b/sapl/api/serializers.py index c48eefb7d..903051d10 100644 --- a/sapl/api/serializers.py +++ b/sapl/api/serializers.py @@ -86,7 +86,7 @@ class ParlamentarSerializerPublic(SaplSerializerMixin): class Meta: model = Parlamentar - exclude = ["cpf", "rg", "fax", + exclude = ["cpf", "rg", "fax", "data_nascimento", "endereco_residencia", "municipio_residencia", "uf_residencia", "cep_residencia", "situacao_militar", "telefone_residencia", "titulo_eleitor", "fax_residencia"] diff --git a/sapl/templates/parlamentares/parlamentar_perfil_publico.html b/sapl/templates/parlamentares/parlamentar_perfil_publico.html index ce2dad1d1..de3018ca4 100644 --- a/sapl/templates/parlamentares/parlamentar_perfil_publico.html +++ b/sapl/templates/parlamentares/parlamentar_perfil_publico.html @@ -35,12 +35,6 @@ -
-
-

Data de Nascimento:   {{object.data_nascimento|default_if_none:"Não informado"}}

-
-
-

Telefone:   {{object.telefone|default_if_none:"Não informado"}}