mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Replaced old-style with new-style decorator syntax.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16138 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
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)
|
||||
secure_view = staff_member_required(secure_view)
|
||||
Reference in New Issue
Block a user