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 %}