summaryrefslogtreecommitdiff
path: root/certificate/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'certificate/views.py')
-rw-r--r--certificate/views.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/certificate/views.py b/certificate/views.py
index 5be6f0f..e17592d 100644
--- a/certificate/views.py
+++ b/certificate/views.py
@@ -104,9 +104,11 @@ def verify(request):
context["invalidserial"] = 1
return render_to_response('verify.html', context, context_instance=ci)
else:
- name = certificate.name
+ name = certificate.name.title()
paper = certificate.paper
workshop = certificate.workshop
+ certificate.verified += 1
+ certificate.save()
purpose, year, type = _get_detail(serial_no)
if type == 'P':
detail = '{0} had attended {1} {2}'.format(name, purpose, year)