Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed #5801: admin requests with GET args now get properly bounced th…
…rough login with those args intact. Thanks for the patch, Rozza. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8271 bcc190cf-cafb-0310-a4f2-bffc1f526a37
- Loading branch information
Showing
6 changed files
with
132 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,7 +1,9 @@ | |||
from django.conf.urls.defaults import * | from django.conf.urls.defaults import * | ||
from django.contrib import admin | from django.contrib import admin | ||
import views | |||
|
|
||
urlpatterns = patterns('', | urlpatterns = patterns('', | ||
(r'^admin/doc/', include('django.contrib.admindocs.urls')), | (r'^admin/doc/', include('django.contrib.admindocs.urls')), | ||
(r'^admin/secure-view/$', views.secure_view), | |||
(r'^admin/(.*)', admin.site.root), | (r'^admin/(.*)', admin.site.root), | ||
) | ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,6 @@ | |||
from django.contrib.admin.views.decorators import staff_member_required | |||
from django.http import HttpResponse | |||
|
|||
def secure_view(request): | |||
return HttpResponse('') | |||
secure_view = staff_member_required(secure_view) |