2015-01-28 13:35:27 +01:00
|
|
|
from django.http import HttpResponse
|
2020-10-20 09:14:48 +02: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 13:35:27 +01:00
|
|
|
|
|
|
|
|
|
|
|
def empty_view(request, *args, **kwargs):
|
2019-02-09 22:27:32 +01:00
|
|
|
return HttpResponse()
|
2020-10-20 09:14:48 +02: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()
|