- {% include 'hub/includes/person-photo.html' with person=row.person %}
+ {% include 'hub/includes/person-photo.html' with person=person %}
-
{{ row.person }}
- {% if row.party %}
-
{{ row.party }}
+
{{ person.name }}
+ {% if person.party %}
+
{{ person.party }}
{% endif %}
diff --git a/hub/views/area.py b/hub/views/area.py
index 91fc44126..423a82e1f 100644
--- a/hub/views/area.py
+++ b/hub/views/area.py
@@ -217,15 +217,7 @@ def get_context_data(self, **kwargs):
context["slug"] = slugify(self.object.name)
if context["area_type"] == "WMC23":
- context["PPCs"] = [
- {
- "person": p,
- "party": PersonData.objects.get(
- person=p, data_type=DataType.objects.get(name="party")
- ).value(),
- }
- for p in Person.objects.filter(area=self.object, person_type="PPC")
- ]
+ context["PPCs"] = Person.objects.filter(area=self.object, person_type="PPC")
try:
context["mp"] = {
"person": Person.objects.get(