fix(cof): also fix mailinglist captcha

This commit is contained in:
catvayor 2025-03-09 01:06:17 +01:00
parent e6930d3ebb
commit 65c483e935
Signed by: lbailly
GPG key ID: CE3E645251AC63F3

View file

@ -1,12 +1,15 @@
from django.shortcuts import render
from django.views.decorators.clickjacking import xframe_options_sameorigin
from gestioncof.cms.forms import CaptchaForm
@xframe_options_sameorigin
def raw_calendar_view(request, year, month):
return render(request, "cofcms/calendar_raw.html", {"month": month, "year": year})
@xframe_options_sameorigin
def sympa_captcha_form_view(request):
if request.method == "POST":
form = CaptchaForm(request.POST)