def construct_change_message(form=None, formsets=None):
    """
    Construct a description text message with a brief explanation of the changes.
    """
    message = []
    if form and form.changed_data:
        message.append(_(u'Changed fields: %s.') % get_text_list(form.changed_data, _('and')))

    if formsets:
        message.extend(construct_message_from_formset(formsets))

    message = u'\n'.join(message)
    return message or _(u'No fields changed.')
dataset/ETHPy150Open scieloorg/scielo-manager/scielomanager/audit_log/helpers.py/construct_change_message/original