Ticket #14434: django-admin-login-view.diff
File django-admin-login-view.diff, 537 bytes (added by , 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): 338 338 339 339 # The user data is correct; log in the user in and continue. 340 340 else: 341 if user.is_active and user.is_staff:341 if self.has_permission(request): 342 342 login(request, user) 343 343 return http.HttpResponseRedirect(request.get_full_path()) 344 344 else: