﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
36174	Align admin pagination logic in history_view.	Antoliny	Antoliny	"Currently, pagination in history_view is applied automatically (when EntryObjects exceed 100).
[[Image(history_view_pagination.png)]]
{{{
    def history_view(...):
        paginator = self.get_paginator(request, action_list, 100)
        page_number = request.GET.get(PAGE_VAR, 1)
        page_obj = paginator.get_page(page_number)
        page_range = paginator.get_elided_page_range(page_obj.number)

        context = {
            **self.admin_site.each_context(request),
            ""title"": _(""Change history: %s"") % obj,
            ""subtitle"": None,
            ""action_list"": page_obj,
            ""page_range"": page_range,
            ""page_var"": PAGE_VAR,
            ""pagination_required"": paginator.count > 100,
}}}
As shown in the code above, the pagination value(100) is static, and I would like it to be optionally provided, similar to how pagination is applied in `list_display`.
{{{
class PostAdmin(admin.ModelAdmin):
    list_display = [""title""]
    list_per_page = 3
    example) list_per_history = xx 
}}}
Moreover, since the ""Show all"" button available in list_display is not provided in history_view, this need feels even more necessary.
(Even if the ""Show all"" button is not provided, I believe this functionality is still necessary. It is especially useful when searching for a specific object using text(Ex.. Mac Command + F) search or similar features when pagination is not applied.)"	Cleanup/optimization	closed	contrib.admin	5.1	Normal	duplicate	pagination		Accepted	0	0	0	0	0	0
