| 1 |
from django.http import HttpResponse |
| 2 |
from django.utils.decorators import method_decorator |
| 3 |
from django.views.decorators.common import no_append_slash |
| 4 |
from django.views.generic import View |
| 5 |
|
| 6 |
|
| 7 |
def empty_view(request, *args, **kwargs): |
| 8 |
return HttpResponse() |
| 9 |
|
| 10 |
|
| 11 |
@no_append_slash |
| 12 |
def sensitive_fbv(request, *args, **kwargs): |
| 13 |
return HttpResponse() |
| 14 |
|
| 15 |
|
| 16 |
@method_decorator(no_append_slash, name="dispatch") |
| 17 |
class SensitiveCBV(View): |
| 18 |
def get(self, *args, **kwargs): |
| 19 |
return HttpResponse() |