• Claude Paroz's avatar
    Fixed #21911 -- Made admin views redirect to login when needed · be0ad629
    Claude Paroz yazdı
    Historically, the Django admin used to pass through the request
    from an unauthorized access to the login view directly. Now we
    are using a proper redirection, which is also preventing
    inadvertantly changing data when POSTing login data to an admin
    view when user is already authorized.
    Thanks Marc Tamlyn and Tim Graham for the reviews.
    be0ad629
tests.py 78.9 KB