Skip to content

Commit f2a94c7

Browse files
michaeljcollinsukname
andcommitted
Add personpost conditional in person_detail.html
Co-authored-by: name <virginia.dooley@democracyclub.org.uk> Co-authored-by: name <michaeljcollinsuk@users.noreply.github.com>
1 parent e8da81d commit f2a94c7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

wcivf/apps/people/templates/people/person_detail.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ <h3>That's all we know! Will you help us find more about this candidate?</h3>
359359
<li class="disabled"><span class="show-for-sr">Current: </span> {{ object.name }}</li>
360360
</ol>
361361
{% endif %}
362-
363-
{% include "elections/includes/_ld_candidate.html" with person=object.personpost.person party=object.personpost.party %}
364-
362+
{% if object.personpost %}
363+
{% include "elections/includes/_ld_candidate.html" with person=object.personpost.person party=object.personpost.party %}
364+
{% endif %}
365365
{% endblock breadcrumbs %}

0 commit comments

Comments
 (0)