app/soc/models/role.py
changeset 1420 c49d6f79663d
parent 1410 20580c5272e4
child 1595 c36a10ae7a0f
equal deleted inserted replaced
1419:5d0f80ad7b9f 1420:c49d6f79663d
   344       'Indicates the status of the role concerning which privileges may be used.')
   344       'Indicates the status of the role concerning which privileges may be used.')
   345 
   345 
   346   def name(self):
   346   def name(self):
   347     """Property as 'name' for use in common templates.
   347     """Property as 'name' for use in common templates.
   348     """
   348     """
   349     if self.name_on_certificates:
   349     if self.name_on_documents:
   350       return self.name_on_certificates
   350       return self.name_on_documents
   351     else:
   351     else:
   352       return '%s %s' (self.given_name, self.surname)
   352       return '%s %s' %(self.given_name, self.surname)