#19265: deprecate redirect_to_login
-------------------------------------+-------------------------------------
     Reporter:  ptone                |                    Owner:  nobody
         Type:                       |                   Status:  new
  Cleanup/optimization               |                  Version:  master
    Component:  contrib.auth         |               Resolution:
     Severity:  Normal               |             Triage Stage:  Design
     Keywords:                       |  decision needed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by ssidorenko):

 * stage:  Accepted => Design decision needed


Comment:

 Hi, redirect_to_login is actually used by @login_required, and you can
 actually find a case where it is used in a standalone way in
 contrib/flatpages/views.py :


 {{{
  53     # If registration is required for accessing this page, and the
 user isn't
  54     # logged in, redirect to the login page.
  55     if f.registration_required and not
 request.user.is_authenticated():
  56         from django.contrib.auth.views import redirect_to_login
  57         return redirect_to_login(request.path)

 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/19265#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to