Commit 65b86aac authored by Serge S. Koval's avatar Serge S. Koval

Merge branch 'master' of github.com:mrjoes/flask-admin

parents 49e3dea4 eff8ec3f
...@@ -551,7 +551,7 @@ class FileAdmin(BaseView, ActionsMixin): ...@@ -551,7 +551,7 @@ class FileAdmin(BaseView, ActionsMixin):
try: try:
shutil.rmtree(full_path) shutil.rmtree(full_path)
self.on_diretory_delete(full_path, path) self.on_directory_delete(full_path, path)
flash(gettext('Directory "%s" was successfully deleted.' % path)) flash(gettext('Directory "%s" was successfully deleted.' % path))
except Exception, ex: except Exception, ex:
flash(gettext('Failed to delete directory: %(error)s', error=ex), 'error') flash(gettext('Failed to delete directory: %(error)s', error=ex), 'error')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment