mirror of
https://github.com/django/django.git
synced 2024-12-27 19:46:22 +00:00
27b0077a48
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8509 bcc190cf-cafb-0310-a4f2-bffc1f526a37
6 lines
229 B
Python
6 lines
229 B
Python
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) |