From d140f93d254cb8f764079edfe28042b34f863ba3 Mon Sep 17 00:00:00 2001 From: Vivek Santayana Date: Thu, 11 Aug 2022 11:41:57 +0100 Subject: [PATCH] Bugfix: hude club field when empty --- ref-test/app/admin/templates/admin/components/certificate.html | 2 +- ref-test/app/admin/templates/admin/result-detail.html | 2 +- ref-test/app/admin/templates/admin/results.html | 2 +- ref-test/app/quiz/templates/quiz/result.html | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ref-test/app/admin/templates/admin/components/certificate.html b/ref-test/app/admin/templates/admin/components/certificate.html index ad49efd..1263357 100644 --- a/ref-test/app/admin/templates/admin/components/certificate.html +++ b/ref-test/app/admin/templates/admin/components/certificate.html @@ -24,7 +24,7 @@ {{ entry.get_email() }} - {% if entry.club %} + {% if entry.get_club() %}
  • Club
    diff --git a/ref-test/app/admin/templates/admin/result-detail.html b/ref-test/app/admin/templates/admin/result-detail.html index 7bce922..4c60d80 100644 --- a/ref-test/app/admin/templates/admin/result-detail.html +++ b/ref-test/app/admin/templates/admin/result-detail.html @@ -22,7 +22,7 @@
    {{ entry.get_email() }}
  • - {% if entry.club %} + {% if entry.get_club() %}
  • Club
    diff --git a/ref-test/app/admin/templates/admin/results.html b/ref-test/app/admin/templates/admin/results.html index 7df3f90..09fb7f2 100644 --- a/ref-test/app/admin/templates/admin/results.html +++ b/ref-test/app/admin/templates/admin/results.html @@ -40,7 +40,7 @@ {{ entry.get_surname() }}, {{ entry.get_first_name() }} - {% if entry.club %} + {% if entry.get_club() %} {{ entry.get_club() }} {% endif %} diff --git a/ref-test/app/quiz/templates/quiz/result.html b/ref-test/app/quiz/templates/quiz/result.html index 03dd1b1..32db8ef 100644 --- a/ref-test/app/quiz/templates/quiz/result.html +++ b/ref-test/app/quiz/templates/quiz/result.html @@ -11,7 +11,7 @@ Email Address: {{ entry.get_email() }}
    - {% if entry.club %} + {% if entry.get_club() %} Club: {{ entry.get_club() }}
    {% endif%}