Prepare for DeleteView change in Django 4.0

This commit is contained in:
Raphael Michel
2023-01-24 14:16:01 +01:00
parent 50596b7543
commit 433262f6fc
14 changed files with 76 additions and 37 deletions

View File

@@ -43,7 +43,7 @@ from django.urls import reverse
from django.utils.functional import cached_property
from django.utils.timezone import is_aware, make_aware, now
from django.utils.translation import gettext_lazy as _
from django.views.generic import DeleteView, ListView
from django.views.generic import ListView
from pytz import UTC
from pretix.base.channels import get_all_sales_channels
@@ -57,6 +57,7 @@ from pretix.control.forms.filter import (
)
from pretix.control.permissions import EventPermissionRequiredMixin
from pretix.control.views import CreateView, PaginationMixin, UpdateView
from pretix.helpers.compat import CompatDeleteView
from pretix.helpers.models import modelcopy
@@ -394,7 +395,7 @@ class CheckinListUpdate(EventPermissionRequiredMixin, UpdateView):
return super().form_invalid(form)
class CheckinListDelete(EventPermissionRequiredMixin, DeleteView):
class CheckinListDelete(EventPermissionRequiredMixin, CompatDeleteView):
model = CheckinList
template_name = 'pretixcontrol/checkin/list_delete.html'
permission = 'can_change_event_settings'