Move member_template property from Group to Organization model since it's Organization specific property.
Patch by: Pawel Solyga
Review by: to-be-reviewed
--- 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.')