mirror of
https://github.com/django/django.git
synced 2025-11-15 01:38:11 +00:00
Fixed #4617 -- Added raise_exception option to permission_required decorator to be able to raise a PermissionDenied exception instead of redirecting to the login page.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16607 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
1ca6e9b9e2
commit
351d5da69b
5 changed files with 45 additions and 7 deletions
|
|
@ -21,6 +21,7 @@ urlpatterns = patterns('',
|
|||
(r'^login_protected_method_view/$', views.login_protected_method_view),
|
||||
(r'^login_protected_view_custom_redirect/$', views.login_protected_view_changed_redirect),
|
||||
(r'^permission_protected_view/$', views.permission_protected_view),
|
||||
(r'^permission_protected_view_exception/$', views.permission_protected_view_exception),
|
||||
(r'^permission_protected_method_view/$', views.permission_protected_method_view),
|
||||
(r'^session_view/$', views.session_view),
|
||||
(r'^broken_view/$', views.broken_view),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue