From d160c9fd67f0d98cc581ef8a4d42d3d5ae42eac3 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Wed, 9 Oct 2024 17:11:10 +0200 Subject: [PATCH] Fix crash in checkin list action view (PRETIXEU-AN8) --- src/pretix/control/views/checkin.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/pretix/control/views/checkin.py b/src/pretix/control/views/checkin.py index 042322f89..235df2f3d 100644 --- a/src/pretix/control/views/checkin.py +++ b/src/pretix/control/views/checkin.py @@ -39,7 +39,7 @@ from django.contrib import messages from django.core.exceptions import PermissionDenied from django.db import transaction from django.db.models import Exists, Max, OuterRef, Prefetch, Q, Subquery -from django.http import Http404, HttpResponseRedirect +from django.http import Http404, HttpResponseNotAllowed, HttpResponseRedirect from django.shortcuts import get_object_or_404 from django.urls import reverse from django.utils.functional import cached_property @@ -193,6 +193,9 @@ class CheckInListShow(EventPermissionRequiredMixin, PaginationMixin, CheckInList class CheckInListBulkRevertConfirmView(CheckInListQueryMixin, EventPermissionRequiredMixin, TemplateView): template_name = "pretixcontrol/checkin/bulk_revert_confirm.html" + def get(self, request, *args, **kwargs): + return HttpResponseNotAllowed(permitted_methods=["POST"]) + def post(self, request, *args, **kwargs): self.list = get_object_or_404(self.request.event.checkin_lists.all(), pk=kwargs.get("list")) return super().get(request, *args, **kwargs)