

def get_flashes(request):
    flashes = request.session.get('flashes', [])
    request.session['flashes'] = []
    return flashes

dataset/ETHPy150Open andrewgodwin/lastgraph/shortcuts.py get_flashes/original