diff --git a/hub/views/area.py b/hub/views/area.py index 71c6671da..ea0b6f1d4 100644 --- a/hub/views/area.py +++ b/hub/views/area.py @@ -202,7 +202,9 @@ def get_context_data(self, **kwargs): context["area_type"] = str(self.object.area_type) try: context["mp"] = { - "person": Person.objects.get(area=self.object, person_type="MP") + "person": Person.objects.get( + area=self.object, person_type="MP", end_date__isnull=True + ) } data = PersonData.objects.filter(