

def get(self, request, *args, **kwargs):
    service = request.GET.get('service')
    ticket = request.GET.get('ticket')
    if (not is_valid_service(service)):
        return redirect('cas_login')
    msg = (_('Do you want to access %(service)s as %(user)s?') % {
        'service': clean_service_url(service),
        'user': request.user,
    })
    messages.info(request, msg)
    kwargs['service'] = add_query_params(service, {
        'ticket': ticket,
    })
    return super(WarnView, self).get(request, *args, **kwargs)

dataset/ETHPy150Open jbittel/django-mama-cas/mama_cas/views.py WarnView.get/original