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