From 5c471179b821cf1c3a35e9b5131dc0ad8bc2a215 Mon Sep 17 00:00:00 2001 From: Vivek Santayana Date: Mon, 6 Dec 2021 22:47:54 +0000 Subject: [PATCH] This fixes it, hopefully --- ref-test/admin/templates/admin/result-detail.html | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/ref-test/admin/templates/admin/result-detail.html b/ref-test/admin/templates/admin/result-detail.html index 9e56fee..88b99c3 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 entry.submission_time is defined %} + {% if 'submission_time' in entry %} {{ entry.submission_time.strftime('%d %b %Y %H:%M:%S') }} {% else %} Incomplete {% endif %} - {% if entry.results is defined %} + {% if 'results' in entry %}
  • Score
    @@ -76,11 +76,9 @@
    {{ entry.results.grade[0]|upper }}{{ entry.results.grade[1:]}}
  • - {% else %} - No results to display. {% endif %} - {% if entry.results is defined %} + {% if 'results' in entry %}