diff --git a/ref-test/app/admin/templates/admin/components/certificate.html b/ref-test/app/admin/templates/admin/components/certificate.html
index 2a4bcdd..ad49efd 100644
--- a/ref-test/app/admin/templates/admin/components/certificate.html
+++ b/ref-test/app/admin/templates/admin/components/certificate.html
@@ -15,30 +15,30 @@
Candidate
- {{ entry.name.surname}}, {{ entry.name.first_name }}
+ {{ entry.get_surname()}}, {{ entry.get_first_name() }}
Email Address
- {{ entry.email }}
+ {{ entry.get_email() }}
- {% if entry['club'] %}
+ {% if entry.club %}
Club
- {{ entry.club }}
+ {{ entry.get_club() }}
{% endif %}
Exam Code
- {{ '—'.join([entry.test_code[:4], entry.test_code[4:8], entry.test_code[8:]]) }}
+ {{ entry.test.get_code() }}
- {% if entry['user_code'] %}
+ {% if entry.user_code %}
User Code
@@ -59,19 +59,19 @@
Late
{% endif %}
- {{ entry.submission_time.strftime('%d %b %Y %H:%M:%S') }}
+ {{ entry.end_time.strftime('%d %b %Y %H:%M:%S') }}
Score
- {{ entry.results.score }}%
+ {{ entry.result.score }}%
-
+
Grade
- {{ entry.results.grade[0]|upper }}{{ entry.results.grade[1:]}}
+ {{ entry.result.grade[0]|upper }}{{ entry.result.grade[1:]}}