Add a verbose_name and help_text to the User.id Property.
authorTodd Larsen <tlarsen@google.com>
Thu, 18 Sep 2008 17:31:01 +0000
changeset 161 f4af04306890
parent 160 269462f166ef
child 162 8ee23f825ba8
Add a verbose_name and help_text to the User.id Property.
app/soc/models/user.py
--- a/app/soc/models/user.py	Tue Sep 16 18:02:09 2008 +0000
+++ b/app/soc/models/user.py	Thu Sep 18 17:31:01 2008 +0000
@@ -57,7 +57,10 @@
   #: This email address is only used in an automated fashion by 
   #: Melange web applications and is not made visible to other users 
   #: of any Melange application.
-  id = db.UserProperty(required=True)
+  id = db.UserProperty(required=True,
+      verbose_name=ugettext_lazy('User account'))
+  id.help_text = ugettext_lazy(
+      'Email address of a valid user (Google Account).')
 
   #: A list (possibly empty) of former Google Accounts associated with
   #: this User.