diff options
author | Hardik Ghaghada | 2015-02-20 14:41:51 +0530 |
---|---|---|
committer | Hardik Ghaghada | 2015-02-20 14:41:51 +0530 |
commit | d4e10771325fe68148f64bacb67868a99be0c4b0 (patch) | |
tree | 7a4c92e2186395d4e151241d8a9ce585fe6e2ad8 /tbc | |
parent | 9db783324959e6102b0f09731752d500b5f22ca4 (diff) | |
parent | 51e2718c8616c17c84709a627d7e545bdc6f53b6 (diff) | |
download | Python-TBC-Interface-d4e10771325fe68148f64bacb67868a99be0c4b0.tar.gz Python-TBC-Interface-d4e10771325fe68148f64bacb67868a99be0c4b0.tar.bz2 Python-TBC-Interface-d4e10771325fe68148f64bacb67868a99be0c4b0.zip |
Merge pull request #13 from prathamesh920/certificate_modified
Modified the content of the certificate in views.
Diffstat (limited to 'tbc')
-rwxr-xr-x | tbc/views.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tbc/views.py b/tbc/views.py index da05478..cee3f04 100755 --- a/tbc/views.py +++ b/tbc/views.py @@ -1204,8 +1204,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': @@ -1213,8 +1211,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') |