Fixed name method in soc/models/role.py
authorLennard de Rijk <ljvderijk@gmail.com>
Sat, 21 Feb 2009 10:36:04 +0000
changeset 1420 c49d6f79663d
parent 1419 5d0f80ad7b9f
child 1421 7602d41f0ed8
Fixed name method in soc/models/role.py Patch by: Lennard de Rijk Reviewed by: to-be-reviewed
app/soc/models/role.py
--- 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)