Display state (but dis-allow edits) of User's agrees_to_tos boolean Property.
Patch by: Todd Larsen
Review by: to-be-reviewed
--- a/app/soc/views/models/user.py Wed Jan 14 22:30:24 2009 +0000
+++ b/app/soc/views/models/user.py Wed Jan 14 22:37:05 2009 +0000
@@ -59,6 +59,11 @@
label=soc.models.user.User.is_developer.verbose_name,
help_text=soc.models.user.User.is_developer.help_text)
+ agrees_to_tos = forms.BooleanField(required=False,
+ widget=helper.widgets.ReadOnlyBool(),
+ label=soc.models.user.User.agrees_to_tos.verbose_name,
+ help_text=soc.models.user.User.agrees_to_tos.help_text)
+
class Meta:
"""Inner Meta class that defines some behavior for the form.
"""