From ef01ffa9accb564815995c8afdcf9bba3690c4e3 Mon Sep 17 00:00:00 2001 From: Zarino Zappia Date: Fri, 14 Jun 2024 16:30:36 +0100 Subject: [PATCH] Switch area page to use person.party --- hub/templates/hub/area.html | 14 +++++++------- hub/views/area.py | 10 +--------- 2 files changed, 8 insertions(+), 16 deletions(-) diff --git a/hub/templates/hub/area.html b/hub/templates/hub/area.html index 8a35a063..a1e52d4f 100644 --- a/hub/templates/hub/area.html +++ b/hub/templates/hub/area.html @@ -176,8 +176,8 @@

MP

{{ mp.person.name }}

- {% if mp.party %} -

{{ mp.party }}

+ {% if mp.person.party %} +

{{ mp.person.party }}

{% endif %}
@@ -364,17 +364,17 @@

Term ended

Prospective Parliamentary Candidates

These are the candidates standing for election in this constituency on 4th June.

- {% for row in PPCs %} + {% for person in PPCs %}