Ticket #14358: 14358_history_verbose_field_name.py

File 14358_history_verbose_field_name.py, 612 bytes (added by Julien Phalip, 14 years ago)
Line 
1Index: django/contrib/admin/options.py
2===================================================================
3--- django/contrib/admin/options.py (revision 14830)
4+++ django/contrib/admin/options.py (working copy)
5@@ -561,7 +561,7 @@
6 """
7 change_message = []
8 if form.changed_data:
9- change_message.append(_('Changed %s.') % get_text_list(form.changed_data, _('and')))
10+ change_message.append(_('Changed %s.') % get_text_list([form.fields[field_name].label for field_name in form.changed_data], _('and')))
11
12 if formsets:
13 for formset in formsets:
Back to Top