From 28f944a6cf65c776999f9e031294ec821ed61703 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 %}