Add publish_location boolean property to Role model. This field indicates whether the User has agreed to publish his location. It is not supported yet in any logic, views or templates but we won't want to change models later so it's being added now.
Patch by: Pawel Solyga
Reviewed by: to-be-reviewed
--- a/app/soc/models/role.py Sun Feb 01 17:31:09 2009 +0000
+++ b/app/soc/models/role.py Sun Feb 01 17:40:26 2009 +0000
@@ -303,7 +303,12 @@
verbose_name=ugettext('Status of this Role'))
status.help_text = ugettext(
'Indicates the status of the role concerning which privileges may be used.')
-
+
+ #: field storing whether the User has agreed to publish his location
+ publish_location = db.BooleanProperty(required=False, default=False,
+ verbose_name=ugettext('Publish my location'))
+ publish_location.help_text = ugettext(
+ 'Indicates whether the user agreed to publish location.')
def name(self):
"""Property as 'name' for use in common templates.