Removed club property from club_admin model.
authorLennard de Rijk <ljvderijk@gmail.com>
Fri, 23 Jan 2009 16:23:01 +0000
changeset 925 a85719e94570
parent 924 34f944dc4502
child 926 390c8a98cdd0
Removed club property from club_admin model. Patch by: Lennard de Rijk Reviewed by: to-be-reviewed
app/soc/models/club_admin.py
app/soc/views/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
--- 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