def get_default_redirect(request, redirect_field_name="next",
        login_redirect_urlname=LOGIN_REDIRECT_URLNAME):
    if login_redirect_urlname:
        default_redirect_to = reverse(login_redirect_urlname)
    else:
        default_redirect_to = settings.LOGIN_REDIRECT_URL
    redirect_to = request.REQUEST.get(redirect_field_name)
    # light security check -- make sure redirect_to isn't garabage.
    if not redirect_to or "://" in redirect_to or " " in redirect_to:
        redirect_to = default_redirect_to
    return redirect_to
Abort a transaction.
dataset/ETHPy150Open caseywstark/colab/colab/apps/account/utils.py/get_default_redirect--crossover with--dataset/ETHPy150Open jasonrbriggs/stomp.py/stomp/protocol.py/Protocol10.abort