Use key().id_or_name() instead of key().name()
These two cases were introduced after the previous refactoring was
done and did not follow the new behavior.
Patch by: Sverre Rabbelier
--- a/app/soc/views/helper/redirects.py Mon Apr 13 14:34:42 2009 +0000
+++ b/app/soc/views/helper/redirects.py Mon Apr 13 15:30:48 2009 +0000
@@ -181,7 +181,7 @@
"""
result = '/%s/list_projects/%s' % (
- params['url_name'], entity.key().name())
+ params['url_name'], entity.key().id_or_name())
return result
@@ -294,7 +294,7 @@
"""
return '/%s/st_edit/%s' % (
- params['url_name'], entity.key().name())
+ params['url_name'], entity.key().id_or_name())
def getStudentProposalRedirect(entity, params):