diff options
Diffstat (limited to 'tbc/views.py')
-rwxr-xr-x | tbc/views.py | 4 |
1 files changed, 2 insertions, 2 deletions
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') |