Skip to content

Commit cd718e1

Browse files
authored
Change decorators to apply to dispatch method
1 parent 80faf32 commit cd718e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

weblate/configuration/views.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
from weblate.auth.models import AuthenticatedHttpRequest
2323

2424

25-
@method_decorator(cache_control(max_age=7200), name="get")
26-
@method_decorator(login_not_required, name="get")
25+
@method_decorator(cache_control(max_age=7200), name="dispatch")
26+
@method_decorator(login_not_required, name="dispatch")
2727
class CustomCSSView(TemplateView):
2828
template_name = "configuration/custom.css"
2929
cache_key = "css:custom"

0 commit comments

Comments
 (0)