app/soc/views/helper/redirects.py
changeset 1340 06ffdc68ab1b
parent 1323 a666374587df
child 1378 8c7f5411d372
--- a/app/soc/views/helper/redirects.py	Sun Feb 15 14:55:29 2009 +0000
+++ b/app/soc/views/helper/redirects.py	Sun Feb 15 14:55:53 2009 +0000
@@ -71,6 +71,14 @@
       params['url_name'], entity.key().name())
 
 
+def getAdminRedirect(entity, params):
+  """Returns the public redirect for the specified entity.
+  """
+
+  return '/%s/admin/%s' % (
+      params['url_name'], entity.key().name())
+
+
 def getListRedirect(entity, params):
   """Returns the public redirect for the specified entity.
   """