Provide a simple method in the Role Model class that aliases the existing
'display_name' Property to 'name'.
Patch by: Todd Larsen
--- 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