changeset 69 | c6bca38c1cbf |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/parts/django/tests/regressiontests/admin_views/views.py Sat Jan 08 11:20:57 2011 +0530 @@ -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('%s' % request.POST) +secure_view = staff_member_required(secure_view) \ No newline at end of file