﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
16884	Add message level argument to ModelAdmin's message_user	Sergiy Kuzmenko	nobody	"I think it would be really nice to extend message_user method to allow warning and error messages to be output by admin actions.
So in https://code.djangoproject.com/browser/django/trunk/django/contrib/admin/options.py#L675 method signature would change as follows:

{{{
- def message_user(self, request, message):
+ def message_user(self, request, message, level=INFO):
}}}

Semantics and look-n-feel:

* DEBUG, INFO, SUCCESS: Admin action completed successfully; shows the green checkbox image (same as for representing True)
* ERROR: Admin action did not complete; shows the stop sign image (same as for False)
* WARNING: Admin action completed but not as smooth as expected; perhaps there should be a new icon for this (white question mark on red circle?)
"	New feature	closed	contrib.admin	dev	Normal	fixed	admin	Rafał Jagoda H0ff1 simon@…	Accepted	1	0	0	0	1	1
