Move member_template property from Group to Organization model since it's Organization specific property.
authorPawel Solyga <Pawel.Solyga@gmail.com>
Tue, 20 Jan 2009 16:08:16 +0000
changeset 834 b60c9ccbeaa5
parent 833 1b9604b95eeb
child 835 1590625ead55
Move member_template property from Group to Organization model since it's Organization specific property. Patch by: Pawel Solyga Review by: to-be-reviewed
app/soc/models/group.py
app/soc/models/organization.py
--- a/app/soc/models/group.py	Tue Jan 20 16:03:55 2009 +0000
+++ b/app/soc/models/group.py	Tue Jan 20 16:08:16 2009 +0000
@@ -121,11 +121,3 @@
   phone.help_text = ugettext_lazy(
       'include complete international calling number with country code')
 
-  member_template = db.ReferenceProperty(
-    reference_class=soc.models.document.Document, required=False,
-    collection_name='group_app_member_template',
-    verbose_name=ugettext_lazy('Application template '))
-  member_template.help_text = ugettext_lazy(
-    'This template will be presented to potential members when they'
-    ' apply to the group.')
-
--- a/app/soc/models/organization.py	Tue Jan 20 16:03:55 2009 +0000
+++ b/app/soc/models/organization.py	Tue Jan 20 16:08:16 2009 +0000
@@ -46,4 +46,12 @@
     verbose_name=ugettext_lazy('Development Mailing List'))
   dev_mailing_list.help_text = ugettext_lazy(
     'Mailing list email address, URL to sign-up page, etc.')
+    
+  member_template = db.ReferenceProperty(
+    reference_class=soc.models.document.Document, required=False,
+    collection_name='group_app_member_template',
+    verbose_name=ugettext_lazy('Application template'))
+  member_template.help_text = ugettext_lazy(
+    'This template will be presented to potential members when they'
+    ' apply to the group.')