mirror of
https://github.com/django/django.git
synced 2024-12-25 10:35:48 +00:00
0b1a061881
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16138 bcc190cf-cafb-0310-a4f2-bffc1f526a37
7 lines
204 B
Python
7 lines
204 B
Python
from django.contrib.admin.views.decorators import staff_member_required
|
|
from django.http import HttpResponse
|
|
|
|
@staff_member_required
|
|
def secure_view(request):
|
|
return HttpResponse('%s' % request.POST)
|