From fe62379da948244ceeb94089bde0a839603f5266 Mon Sep 17 00:00:00 2001 From: prathamesh Date: Fri, 20 Feb 2015 13:36:54 +0530 Subject: Modified the content of the certificate in views. --- tbc/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tbc') diff --git a/tbc/views.py b/tbc/views.py index 2c47593..881096c 100755 --- a/tbc/views.py +++ b/tbc/views.py @@ -1187,8 +1187,8 @@ def GetCertificate(request, book_id=None): else: pronoun = 'He' full_name = '%s %s' %(user.first_name, user.last_name) - user_details = '%s, %s at %s' % (course, department, institute) - book_details = '%s, %s' % (title, edition) + user_details = 'from %s' % (institute) + book_details = '%s, %s edition' % (title, edition) try: template_file = open('{0}template_certificate'.format\ (certificate_path), 'r') -- cgit From 51e2718c8616c17c84709a627d7e545bdc6f53b6 Mon Sep 17 00:00:00 2001 From: prathamesh Date: Fri, 20 Feb 2015 13:54:15 +0530 Subject: removed unused variables from certificate view. --- tbc/views.py | 2 -- 1 file changed, 2 deletions(-) (limited to 'tbc') diff --git a/tbc/views.py b/tbc/views.py index 881096c..a8c2757 100755 --- a/tbc/views.py +++ b/tbc/views.py @@ -1178,8 +1178,6 @@ def GetCertificate(request, book_id=None): proposal_id = None title = book.title edition = book.edition - course = user_profile.course - department = user_profile.dept_desg institute = user_profile.insti_org gender = user_profile.gender if gender == 'female': -- cgit