Fixed name method in soc/models/role.py
Patch by: Lennard de Rijk
Reviewed by: to-be-reviewed
--- a/app/soc/models/role.py Sat Feb 21 00:45:57 2009 +0000
+++ b/app/soc/models/role.py Sat Feb 21 10:36:04 2009 +0000
@@ -346,7 +346,7 @@
def name(self):
"""Property as 'name' for use in common templates.
"""
- if self.name_on_certificates:
- return self.name_on_certificates
+ if self.name_on_documents:
+ return self.name_on_documents
else:
- return '%s %s' (self.given_name, self.surname)
+ return '%s %s' %(self.given_name, self.surname)