Ticket #14434: django-admin-login-view.diff

File django-admin-login-view.diff, 537 bytes (added by Brandon Konkle, 14 years ago)
  • django/contrib/admin/sites.py

    diff --git a/django/contrib/admin/sites.py b/django/contrib/admin/sites.py
    index d0d6473..ec3c36f 100644
    a b class AdminSite(object):  
    338338
    339339        # The user data is correct; log in the user in and continue.
    340340        else:
    341             if user.is_active and user.is_staff:
     341            if self.has_permission(request):
    342342                login(request, user)
    343343                return http.HttpResponseRedirect(request.get_full_path())
    344344            else:
Back to Top