From 509f86d986a5ab463443094e3768c8ee7cbdafa0 Mon Sep 17 00:00:00 2001
From: Fredrik Jonsson <frjo@xdeb.org>
Date: Fri, 24 Aug 2018 09:55:39 +0200
Subject: [PATCH] Not all imported applications has an address set so make it
 optional in the template.

---
 .../apply/funds/templates/funds/includes/rendered_answers.html  | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/opentech/apply/funds/templates/funds/includes/rendered_answers.html b/opentech/apply/funds/templates/funds/includes/rendered_answers.html
index 93977b104..733d5aaaa 100644
--- a/opentech/apply/funds/templates/funds/includes/rendered_answers.html
+++ b/opentech/apply/funds/templates/funds/includes/rendered_answers.html
@@ -21,8 +21,10 @@
         <p>{{ object.get_email_display }}</p>
     </div>
     <div class="grid__cell--span-two">
+        {% if get_address_display in object %}
         <h5>Address</h5>
         <p>{{ object.get_address_display }}</p>
+        {% endif %}
     </div>
 </div>
 <div class="rich-text rich-text--answers">
-- 
GitLab