Changed getApplicantRedirect to use the key_name instead of just a link_id.
authorLennard de Rijk <ljvderijk@gmail.com>
Sun, 01 Feb 2009 16:00:42 +0000
changeset 1146 839da7617496
parent 1145 b2034ab78e3a
child 1147 5b5ce5056a2a
Changed getApplicantRedirect to use the key_name instead of just a link_id. This is to make it work with OrgApplication. Patch by: Lennard de Rijk Reviewed by: to-be-reviewed
app/soc/views/helper/redirects.py
--- a/app/soc/views/helper/redirects.py	Sun Feb 01 13:33:48 2009 +0000
+++ b/app/soc/views/helper/redirects.py	Sun Feb 01 16:00:42 2009 +0000
@@ -208,7 +208,7 @@
   """
 
   return '/%s/applicant/%s' % (
-      params['url_name'], entity.link_id)
+      params['url_name'], entity.key().name())
 
 
 def getCreateDocumentRedirect(entity, prefix):