mirror of
https://github.com/django/django.git
synced 2024-11-20 00:14:08 +00:00
6 lines
212 B
Python
6 lines
212 B
Python
|
from django.contrib.admin.views.decorators import staff_member_required
|
||
|
from django.http import HttpResponse
|
||
|
|
||
|
def secure_view(request):
|
||
|
return HttpResponse('')
|
||
|
secure_view = staff_member_required(secure_view)
|