# HG changeset patch # User Lennard de Rijk # Date 1235212564 0 # Node ID c49d6f79663d3062d18d9a98f822f120aa498c31 # Parent 5d0f80ad7b9f2a55d4484436455bbb05d75f915d Fixed name method in soc/models/role.py Patch by: Lennard de Rijk Reviewed by: to-be-reviewed diff -r 5d0f80ad7b9f -r c49d6f79663d 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)