changeset 577 | e7cb5819f7e9 |
parent 533 | ba3309b2fd30 |
child 685 | a440ced9a75f |
--- a/app/soc/models/role.py Sun Nov 23 00:44:13 2008 +0000 +++ b/app/soc/models/role.py Sun Nov 23 06:34:22 2008 +0000 @@ -273,3 +273,8 @@ tshirt_style = db.StringProperty( verbose_name=ugettext_lazy('T-shirt Style'), choices=('male', 'female')) + + def name(self): + """Alias 'display_name' Property as 'name' for use in common templates. + """ + return self.display_name