Changed the redirect in club application overview to the correct page.
Patch by: Lennard de Rijk
--- a/app/soc/views/helper/redirects.py Wed Jan 21 19:45:13 2009 +0000
+++ b/app/soc/views/helper/redirects.py Wed Jan 21 19:53:23 2009 +0000
@@ -56,8 +56,8 @@
return '/%s/show/%s' % (
params['url_name'], entity.key().name())
-
-
+
+
def getExportRedirect(entity, params):
"""Returns the export redirect for the specified entity.
"""
@@ -65,7 +65,7 @@
return '/%s/export/%s' % (
params['url_name'], entity.key().name())
-
+
def getReviewRedirect(entity, params):
"""Returns the redirect to review the specified entity
"""
@@ -90,3 +90,12 @@
return '/%s/create/%s/%s' % (
entity.role, entity.scope_path, entity.link_id)
+
+
+def getApplicantRedirect(entity, params):
+ """Returns the redirect for processing accepted Applications.
+ """
+
+ return '/%s/applicant/%s' % (
+ params['url_name'], entity.link_id)
+
--- a/app/soc/views/models/club_app.py Wed Jan 21 19:45:13 2009 +0000
+++ b/app/soc/views/models/club_app.py Wed Jan 21 19:53:23 2009 +0000
@@ -158,7 +158,7 @@
"An overview of your accepted club applications.")
aa_params['url_name'] = 'club'
- aa_params['list_action'] = (redirects.getCreateRedirect, aa_params)
+ aa_params['list_action'] = (redirects.getApplicantRedirect, aa_params)
aa_list = list_helper.getListContent(
request, aa_params, filter, 1)