Skip to content

Commit

Permalink
redirecting to the edit page once submit modify
Browse files Browse the repository at this point in the history
  • Loading branch information
kakwa committed Jun 23, 2015
1 parent 5f97588 commit 314e0fc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ldapcherry/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -590,6 +590,8 @@ def modify(self, user=None, **params):
if cherrypy.request.method.upper() == 'POST':
notification = "<script type=\"text/javascript\">$.notify('User Modify')</script>"
self._modify(params)
referer = cherrypy.request.headers['Referer']
raise cherrypy.HTTPRedirect(referer)
else:
notification = ''

Expand Down

0 comments on commit 314e0fc

Please sign in to comment.