PageRenderTime 14ms CodeModel.GetById 10ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/tests/regressiontests/admin_views/views.py

https://code.google.com/p/mango-py/
Python | 6 lines | 5 code | 1 blank | 0 comment | 0 complexity | 88b64475448a6f2e6cb41695dadb32e4 MD5 | raw file
1from django.contrib.admin.views.decorators import staff_member_required
2from django.http import HttpResponse
3
4def secure_view(request):
5    return HttpResponse('%s' % request.POST)
6secure_view = staff_member_required(secure_view)