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.
authorPawel Solyga <Pawel.Solyga@gmail.com>
Sun, 01 Feb 2009 17:40:26 +0000
changeset 1160 56070e3badea
parent 1159 3fefc88b0965
child 1161 ad352f3a37d3
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
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.