Ticket #16884: message-user-level.diff
File message-user-level.diff, 782 bytes (added by , 13 years ago) |
---|
-
django/contrib/admin/options.py
672 672 change_message = ' '.join(change_message) 673 673 return change_message or _('No fields changed.') 674 674 675 def message_user(self, request, message ):675 def message_user(self, request, message, level=messages.INFO): 676 676 """ 677 677 Send a message to the user. The default implementation 678 678 posts a message using the django.contrib.messages backend. 679 679 """ 680 messages. info(request, message)680 messages.add_message(request, level, message) 681 681 682 682 def save_form(self, request, form, change): 683 683 """