From f61c12afd15fc79826f7dde14c94aed120fe205b Mon Sep 17 00:00:00 2001 From: viveksantayana Date: Mon, 6 Dec 2021 22:24:34 +0000 Subject: [PATCH] Trying to fix it again --- ref-test/admin/templates/admin/result-detail.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ref-test/admin/templates/admin/result-detail.html b/ref-test/admin/templates/admin/result-detail.html index 267bce2..997485a 100644 --- a/ref-test/admin/templates/admin/result-detail.html +++ b/ref-test/admin/templates/admin/result-detail.html @@ -57,13 +57,13 @@ Late {% endif %} - {% if 'submission_time' in entry %} + {% if entry.submission_time is defined %} {{ entry.submission_time.strftime('%d %b %Y %H:%M:%S') }} {% else %} Incomplete {% endif %} - {% if 'results' in entry %} + {% if entry.results is defined %}
  • Score
    @@ -80,7 +80,7 @@ No results to display. {% endif %} - {% if not 'results' in entry %} + {% if not entry.results is defined %}