Skip to content

Commit

Permalink
change incorrect 'error' messages to 'success' (pallets-eco#1274)
Browse files Browse the repository at this point in the history
  • Loading branch information
pawl committed May 1, 2016
1 parent b7d3377 commit e8aaf73
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion flask_admin/contrib/mongoengine/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ def action_delete(self, ids):
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)),
Expand Down
2 changes: 1 addition & 1 deletion flask_admin/contrib/peewee/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ def action_delete(self, ids):
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')
2 changes: 1 addition & 1 deletion flask_admin/contrib/pymongo/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,6 @@ def action_delete(self, ids):
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')
2 changes: 1 addition & 1 deletion flask_admin/contrib/sqla/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -1106,7 +1106,7 @@ def action_delete(self, ids):
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
Expand Down

0 comments on commit e8aaf73

Please sign in to comment.