Log view: Disable counting the number of pages (Z#23241035)

This commit is contained in:
Raphael Michel
2026-07-23 19:21:29 +02:00
parent ca03a2556d
commit a5a163e4ea
4 changed files with 6 additions and 4 deletions
@@ -66,5 +66,5 @@
</div> </div>
{% endfor %} {% endfor %}
</ul> </ul>
{% include "pretixcontrol/pagination.html" %} {% include "pretixcontrol/pagination_huge.html" %}
{% endblock %} {% endblock %}
@@ -64,5 +64,5 @@
</div> </div>
{% endfor %} {% endfor %}
</ul> </ul>
{% include "pretixcontrol/pagination.html" %} {% include "pretixcontrol/pagination_huge.html" %}
{% endblock %} {% endblock %}
+2 -1
View File
@@ -121,7 +121,7 @@ from ...helpers.format import (
) )
from ..forms.filter import LogFilterForm from ..forms.filter import LogFilterForm
from ..logdisplay import OVERVIEW_BANLIST from ..logdisplay import OVERVIEW_BANLIST
from . import CreateView, PaginationMixin, UpdateView from . import CreateView, LargeResultSetPaginator, PaginationMixin, UpdateView
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
@@ -1254,6 +1254,7 @@ class EventDelete(RecentAuthenticationRequiredMixin, EventPermissionRequiredMixi
class EventLog(EventPermissionRequiredMixin, PaginationMixin, ListView): class EventLog(EventPermissionRequiredMixin, PaginationMixin, ListView):
template_name = 'pretixcontrol/event/logs.html' template_name = 'pretixcontrol/event/logs.html'
model = LogEntry model = LogEntry
paginator_class = LargeResultSetPaginator
context_object_name = 'logs' context_object_name = 'logs'
def get_queryset(self): def get_queryset(self):
+2 -1
View File
@@ -134,7 +134,7 @@ from pretix.control.permissions import (
organizer_permission_required, organizer_permission_required,
) )
from pretix.control.signals import nav_organizer from pretix.control.signals import nav_organizer
from pretix.control.views import PaginationMixin from pretix.control.views import LargeResultSetPaginator, PaginationMixin
from pretix.control.views.mailsetup import MailSettingsSetupView from pretix.control.views.mailsetup import MailSettingsSetupView
from pretix.helpers import OF_SELF, GroupConcat from pretix.helpers import OF_SELF, GroupConcat
from pretix.helpers.compat import CompatDeleteView from pretix.helpers.compat import CompatDeleteView
@@ -2664,6 +2664,7 @@ class LogView(OrganizerPermissionRequiredMixin, PaginationMixin, ListView):
template_name = 'pretixcontrol/organizers/logs.html' template_name = 'pretixcontrol/organizers/logs.html'
permission = 'organizer.settings.general:write' permission = 'organizer.settings.general:write'
model = LogEntry model = LogEntry
paginator_class = LargeResultSetPaginator
context_object_name = 'logs' context_object_name = 'logs'
def get_queryset(self): def get_queryset(self):