def serialize_profile(user_profile):
    """
    Serializes an user profile object.
    :param user_profile: user profile object
    :return: dictionary with the user profile info
    """
    return {
        'bio': user_profile.bio,
        'description': user_profile.description,
        'resume': user_profile.resume,
        'full_name': user_profile.full_name,
        'mail': user_profile.mail,
        'birth_date': user_profile.birth_date.strftime("%d-%m-%Y"),
        'avatar': user_profile.avatar,
    }