2015-01-28 12:35:27 +00:00
|
|
|
from django.http import HttpResponse
|
2020-10-20 07:14:48 +00:00
|
|
|
from django.utils.decorators import method_decorator
|
|
|
|
from django.views.decorators.common import no_append_slash
|
|
|
|
from django.views.generic import View
|
2015-01-28 12:35:27 +00:00
|
|
|
|
|
|
|
|
|
|
|
def empty_view(request, *args, **kwargs):
|
2019-02-09 21:27:32 +00:00
|
|
|
return HttpResponse()
|
2020-10-20 07:14:48 +00:00
|
|
|
|
|
|
|
|
|
|
|
@no_append_slash
|
|
|
|
def sensitive_fbv(request, *args, **kwargs):
|
|
|
|
return HttpResponse()
|
|
|
|
|
|
|
|
|
|
|
|
@method_decorator(no_append_slash, name="dispatch")
|
|
|
|
class SensitiveCBV(View):
|
|
|
|
def get(self, *args, **kwargs):
|
|
|
|
return HttpResponse()
|