diff options
author | Hardik Ghaghada | 2015-06-24 14:27:05 +0530 |
---|---|---|
committer | Hardik Ghaghada | 2015-06-24 14:27:05 +0530 |
commit | 95e502e7ac5b17b92efb253db0bbc1049fb7d440 (patch) | |
tree | b7c5202486e8ef98ee941e6207e6e6cce5bc6acd /tbc | |
parent | 376309a4150b619e07f02dd334bc0b1b9209f421 (diff) | |
parent | aa3dd8e0505fc39c4bd47608e2345b429fe1a045 (diff) | |
download | Python-TBC-Interface-95e502e7ac5b17b92efb253db0bbc1049fb7d440.tar.gz Python-TBC-Interface-95e502e7ac5b17b92efb253db0bbc1049fb7d440.tar.bz2 Python-TBC-Interface-95e502e7ac5b17b92efb253db0bbc1049fb7d440.zip |
Merge pull request #18 from prathamesh920/certificate_issues_fix
Replacing '&' in book title with 'and' in the certificate
Diffstat (limited to 'tbc')
-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 c44834a..fe31941 100755 --- a/tbc/views.py +++ b/tbc/views.py @@ -1273,8 +1273,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') |