mirror of
https://github.com/pretix/pretix.git
synced 2026-08-29 13:44:40 +00:00
Log view: Disable counting the number of pages (Z#23241035)
This commit is contained in:
@@ -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 %}
|
||||||
|
|||||||
@@ -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):
|
||||||
|
|||||||
@@ -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):
|
||||||
|
|||||||
Reference in New Issue
Block a user