Skip to content

Commit

Permalink
remove safe
Browse files Browse the repository at this point in the history
  • Loading branch information
mguikema committed Sep 27, 2024
1 parent 3f31fcf commit 4b4486f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 19 deletions.
8 changes: 4 additions & 4 deletions app/apps/main/templates/melding/melding_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -288,12 +288,12 @@ <h3 class="h5">{{ qa.question }}</h3>
{% elif signaal.aanvullende_informatie %}
<li>
<h3 class="h5">Aanvullende informatie</h3>
<p>{{ signaal.aanvullende_informatie|replace_n|safe }}</p>
<p>{{ signaal.aanvullende_informatie }}</p>
</li>
{% elif signaal.meta.aanvullendeInformatieField %}
<li>
<h3 class="h5">Aanvullende informatie</h3>
<p>{{ signaal.meta.aanvullendeInformatieField|replace_n|safe }}</p>
<p>{{ signaal.meta.aanvullendeInformatieField }}</p>
</li>
{% endif %}
{% endwith %}
Expand Down Expand Up @@ -381,12 +381,12 @@ <h3 class="h5">{{ qa.question }}</h3>
{% elif melding.signalen_voor_melding.0.aanvullende_informatie %}
<li>
<h3 class="h5">Aanvullende informatie</h3>
<p>{{ melding.signalen_voor_melding.0.aanvullende_informatie|replace_n|safe }}</p>
<p>{{ melding.signalen_voor_melding.0.aanvullende_informatie }}</p>
</li>
{% elif melding.meta.aanvullendeInformatieField %}
<li>
<h3 class="h5">Aanvullende informatie</h3>
<p>{{ melding.meta.aanvullendeInformatieField|replace_n|safe }}</p>
<p>{{ melding.meta.aanvullendeInformatieField }}</p>
</li>
{% endif %}
{% endwith %}
Expand Down
15 changes: 0 additions & 15 deletions app/apps/main/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,20 +275,6 @@ def melding_detail(request, id):
categorized_taaktypes = TaakRService(request=request).categorize_taaktypes(
melding, taaktypes
)
melding_bijlagen = [
[bijlage for bijlage in meldinggebeurtenis.get("bijlagen", [])]
+ [
b
for b in (
meldinggebeurtenis.get("taakgebeurtenis", {}).get("bijlagen", [])
if meldinggebeurtenis.get("taakgebeurtenis")
else []
)
]
for meldinggebeurtenis in melding.get("meldinggebeurtenissen", [])
]

bijlagen_flat = [b for bl in melding_bijlagen for b in bl]
form = InformatieToevoegenForm()
overview_querystring = request.session.get("overview_querystring", "")
if request.method == "POST":
Expand Down Expand Up @@ -345,7 +331,6 @@ def melding_detail(request, id):
"locaties": locaties,
"form": form,
"overview_querystring": overview_querystring,
"bijlagen_extra": bijlagen_flat,
"taaktypes": categorized_taaktypes,
"aantal_actieve_taken": aantal_actieve_taken,
"aantal_opgeloste_taken": aantal_opgeloste_taken,
Expand Down

0 comments on commit 4b4486f

Please sign in to comment.