From 314e0fc02b670cdf5ea1956f0d1598b48dbd8023 Mon Sep 17 00:00:00 2001 From: kakwa Date: Tue, 23 Jun 2015 23:58:17 +0200 Subject: [PATCH] redirecting to the edit page once submit modify --- ldapcherry/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ldapcherry/__init__.py b/ldapcherry/__init__.py index ad37efd..eefe26e 100644 --- a/ldapcherry/__init__.py +++ b/ldapcherry/__init__.py @@ -590,6 +590,8 @@ class LdapCherry(object): if cherrypy.request.method.upper() == 'POST': notification = "" self._modify(params) + referer = cherrypy.request.headers['Referer'] + raise cherrypy.HTTPRedirect(referer) else: notification = ''