From aa3dd8e0505fc39c4bd47608e2345b429fe1a045 Mon Sep 17 00:00:00 2001 From: prathamesh Date: Wed, 24 Jun 2015 13:20:13 +0530 Subject: Replacing '&' in book title with 'and' in the certificate --- 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 5968973..9d6d4a3 100755 --- a/tbc/views.py +++ b/tbc/views.py @@ -1270,8 +1270,8 @@ def GetCertificate(request, book_id=None): else: pronoun = 'He' full_name = '%s %s' %(user.first_name, user.last_name) - user_details = 'from %s' % (institute) - book_details = '%s, %s edition' % (title, edition) + user_details = 'from %s' % (institute.replace('&', 'and')) + book_details = '%s, %s edition' % (title.replace('&', 'and'), edition) try: template_file = open('{0}template_certificate'.format\ (certificate_path), 'r') -- cgit