Added redirect for the student proposal view.
authorLennard de Rijk <ljvderijk@gmail.com>
Tue, 24 Feb 2009 19:49:27 +0000
changeset 1485 430df988d395
parent 1484 6b00a2a43eaf
child 1486 c417a4188e73
Added redirect for the student proposal view. Patch by: Lennard de Rijk Reviewed by: to-be-reviewed
app/soc/views/helper/redirects.py
--- a/app/soc/views/helper/redirects.py	Tue Feb 24 19:43:51 2009 +0000
+++ b/app/soc/views/helper/redirects.py	Tue Feb 24 19:49:27 2009 +0000
@@ -248,6 +248,16 @@
       params['url_name'], entity.key().name())
 
 
+def getStudentProposalRedirect(entity, params):
+  """Returns the student proposal redirect for the given org and student.
+  """
+
+  result ='/%s/apply/%s?organization=%s' % (
+      params['url_name'], params['student_key'], entity.link_id)
+
+  return result
+
+
 def getCreateDocumentRedirect(entity, prefix):
   """Returns the redirect for new documents.
   """