mirror of
https://github.com/django/django.git
synced 2025-10-28 16:16:12 +00:00
Fixed #5801: admin requests with GET args now get properly bounced through 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
This commit is contained in:
6
tests/regressiontests/admin_views/views.py
Normal file
6
tests/regressiontests/admin_views/views.py
Normal file
@@ -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)
|
||||
Reference in New Issue
Block a user