2008-08-10 01:35:19 +08:00
|
|
|
from django.contrib.admin.views.decorators import staff_member_required
|
|
|
|
from django.http import HttpResponse
|
|
|
|
|
|
|
|
def secure_view(request):
|
2008-08-24 14:34:18 +08:00
|
|
|
return HttpResponse('%s' % request.POST)
|
2008-08-10 01:35:19 +08:00
|
|
|
secure_view = staff_member_required(secure_view)
|