def construct_create_message(form=None, formsets=None):
    """
    Construct a "created record" data into a message from a new object.
    """
    message = [u'%s' % force_unicode(field) for field in form.cleaned_data if form]

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

    message = u'Added fields:\n' + u'\n'.join(message)
    return message or _(u'No fields added.')
dataset/ETHPy150Open scieloorg/scielo-manager/scielomanager/audit_log/helpers.py/construct_create_message/original