author | Sverre Rabbelier <srabbelier@gmail.com> |
Sun, 15 Feb 2009 14:55:53 +0000 | |
changeset 1340 | 06ffdc68ab1b |
parent 1339 | c007dc7d00ca |
child 1341 | 1b4b4a9ac17b |
--- 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. """