Maybe this should just be: `request.session['attempting_upgrade'] = upgrade`?