# HG changeset patch # User Lennard de Rijk # Date 1232727781 0 # Node ID a85719e9457007f0ba2a34c90dcf3d476bccf4c0 # Parent 34f944dc4502b42e3d9290eaf494b49d3036c853 Removed club property from club_admin model. Patch by: Lennard de Rijk Reviewed by: to-be-reviewed diff -r 34f944dc4502 -r a85719e94570 app/soc/models/club_admin.py --- a/app/soc/models/club_admin.py Fri Jan 23 16:21:28 2009 +0000 +++ b/app/soc/models/club_admin.py Fri Jan 23 16:23:01 2009 +0000 @@ -31,9 +31,4 @@ """Admin for a specific Club. """ - #: A many:1 relationship associating Admins with specific Club - #: details and capabilities. The back-reference in the Club model - #: is a Query named 'admins'. - club = db.ReferenceProperty( - reference_class=soc.models.club.Club, - required=True, collection_name='admins') + pass diff -r 34f944dc4502 -r a85719e94570 app/soc/views/models/club_admin.py --- a/app/soc/views/models/club_admin.py Fri Jan 23 16:21:28 2009 +0000 +++ b/app/soc/views/models/club_admin.py Fri Jan 23 16:23:01 2009 +0000 @@ -72,7 +72,7 @@ new_params['name'] = "Club Admin" - new_params['extra_dynaexclude'] = ['user', 'club', 'state'] + new_params['extra_dynaexclude'] = ['user', 'state'] new_params['create_extra_dynafields'] = { 'scope_path': forms.CharField(widget=forms.HiddenInput, @@ -114,9 +114,6 @@ fields['user'] = fields['link_id'] fields['link_id'] = fields['user'].link_id - club = club_logic.logic.getFromKeyName(fields['scope_path']) - fields['club'] = club - super(View, self)._editPost(request, entity, fields) @@ -191,7 +188,6 @@ fields['link_id'] = fields['user'].link_id club = club_logic.logic.getFromKeyName(fields['scope_path']) - fields['club'] = club fields['scope'] = club # make sure that this role becomes active once more in case this user