Changes between Version 2 and Version 3 of Ticket #12952, comment 15
- Timestamp:
- Jun 16, 2015, 9:30:31 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #12952, comment 15
v2 v3 13 13 #again for formset 14 14 for changed_object, changed_fields in formset.changed_objects: 15 translated_changed_fields = [formset.fields[f].label for f in changed_fields] 15 16 translated_changed_fields = [formset.forms[0].fields[f].label for f in changed_fields] 17 #using formset.forms[0] looks ugly i agree , couldn't find better ways But hey , it's a changed formset , index [0] is there ! 16 18 change_message.append(_('Changed %(list)s for %(name)s "%(object)s".') 17 19 % {'list': get_text_list(translated_changed_fields, _('and')),