django/django — pull request #925 by czpython (2013-03-18 23:58:11+00:00)
Title: Fixed #6363 -- Refactored admin_view wrapper

In order to decouple authorization from authentication, we created a separate template for the admin called "unauthorized_user.html", this template will be rendered when a user is not active or is not staff. It will also be rendered when the has_permission method returns False.