Name alias now does not use the name_on_documents.
We should use other methods when the name_on_documents is needed.
Addresses Issue 431.
Patch by: Lennard de Rijk
Reviewed by: to-be-reviewed
--- a/app/soc/models/role.py Thu Mar 26 12:19:33 2009 +0000
+++ b/app/soc/models/role.py Thu Mar 26 13:35:49 2009 +0000
@@ -351,7 +351,4 @@
def name(self):
"""Property as 'name' for use in common templates.
"""
- 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)