Commit e8aaf73b authored by Paul Brown's avatar Paul Brown

change incorrect 'error' messages to 'success' (#1274)

parent b7d33778
......@@ -671,7 +671,7 @@ class ModelView(BaseModelView):
flash(ngettext('Record was successfully deleted.',
'%(count)s records were successfully deleted.',
count,
count=count), 'error')
count=count), 'success')
except Exception as ex:
if not self.handle_view_exception(ex):
flash(gettext('Failed to delete records. %(error)s', error=str(ex)),
......
......@@ -498,7 +498,7 @@ class ModelView(BaseModelView):
flash(ngettext('Record was successfully deleted.',
'%(count)s records were successfully deleted.',
count,
count=count), 'error')
count=count), 'success')
except Exception as ex:
if not self.handle_view_exception(ex):
flash(gettext('Failed to delete records. %(error)s', error=str(ex)), 'error')
......@@ -395,6 +395,6 @@ class ModelView(BaseModelView):
flash(ngettext('Record was successfully deleted.',
'%(count)s records were successfully deleted.',
count,
count=count))
count=count), 'success')
except Exception as ex:
flash(gettext('Failed to delete records. %(error)s', error=str(ex)), 'error')
......@@ -1106,7 +1106,7 @@ class ModelView(BaseModelView):
flash(ngettext('Record was successfully deleted.',
'%(count)s records were successfully deleted.',
count,
count=count), 'error')
count=count), 'success')
except Exception as ex:
if not self.handle_view_exception(ex):
raise
......
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