Changes between Version 2 and Version 3 of Ticket #12952, comment 15


Ignore:
Timestamp:
Jun 16, 2015, 9:30:31 PM (9 years ago)
Author:
Ramez Issac

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #12952, comment 15

    v2 v3  
    1313#again for formset
    1414for 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 !
    1618    change_message.append(_('Changed %(list)s for %(name)s "%(object)s".')
    1719                                          % {'list': get_text_list(translated_changed_fields, _('and')),
Back to Top