def remove_from_session_list(request, key, value):
    session_data = request.session.setdefault(key, [])
    if value in session_data:
        session_data.remove(value)
        request.session[key] = session_data

    return session_data
dataset/ETHPy150Open c4all/c4all/comments/views.py/remove_from_session_list/original