diff --git a/district/models.py b/district/models.py index d4575155c9975f4bc53194e9380c52f50bd29170..d51f2fdea000e14bb76f0a50956a6f241238676c 100644 --- a/district/models.py +++ b/district/models.py @@ -381,7 +381,9 @@ class PersonPageMixin(Page): return full_name @property - def position(self) -> None: + def position(self): + print(self.person.position) + return self.person.position @property diff --git a/shared/templates/styleguide2/people_page.html b/shared/templates/styleguide2/people_page.html index 342444750b70918e4b334008829227515d3e2862..9137de6455393f36732ff46e8956eab4cc29517f 100644 --- a/shared/templates/styleguide2/people_page.html +++ b/shared/templates/styleguide2/people_page.html @@ -53,9 +53,11 @@ <template v-if="isCurrentView('{{ block.value.slug }}-{{ forloop.counter }}')"> {% if block.value.person_list|length %} {% for person_page in block.value.person_list %} - {% image person_page.specific.get_profile_image fill-480x480 as profile_image %} + {% with person_page.specific as person_page %} + {% image person_page.get_profile_image fill-480x480 as profile_image %} - {% include 'styleguide2/includes/molecules/contact/contact_person_large_box.html' with image=profile_image name=person_page.title function=person_page.position telephone=person_page.phone mail=person_page.email url=person_page.url %} + {% include 'styleguide2/includes/molecules/contact/contact_person_large_box.html' with image=profile_image name=person_page.title function=person_page.position telephone=person_page.phone mail=person_page.email url=person_page.url %} + {% endwith %} {% endfor %} {% endif %}