# HG changeset patch # User Pawel Solyga # Date 1233510026 0 # Node ID 56070e3badea69f19b940e793461673c18e87eee # Parent 3fefc88b09650952d82df6a19405cad9423d5db8 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 diff -r 3fefc88b0965 -r 56070e3badea app/soc/models/role.py --- 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.