[Django] #33316: django admin model history pagination

75 views
Skip to first unread message

Django

unread,
Nov 24, 2021, 4:07:58 AM11/24/21
to django-...@googlegroups.com
#33316: django admin model history pagination
-------------------------------------+-------------------------------------
Reporter: Maxim | Owner: nobody
Danilov |
Type: Bug | Status: new
Component: | Version: 3.2
contrib.admin | Keywords: dajyngo_admin_log,
Severity: Normal | modeladmin history
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
django admin model history dont have a pagination.

i have a project start in 2012. History is big.

If i have more than 1000 line history of object, it works slowly.
and one object have more than 20 000 changes. history not works - long
loading and after browser crach.

I think it should be paginated.

--
Ticket URL: <https://code.djangoproject.com/ticket/33316>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Nov 24, 2021, 4:53:11 AM11/24/21
to django-...@googlegroups.com
#33316: History view should be paginated by default.
-------------------------------------+-------------------------------------
Reporter: Maxim Danilov | Owner: nobody
Type: New feature | Status: new
Component: contrib.admin | Version: dev
Severity: Normal | Resolution:
Keywords: django_admin_log, | Triage Stage: Accepted
modeladmin history |
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* keywords: dajyngo_admin_log, modeladmin history => django_admin_log,
modeladmin history
* type: Bug => New feature
* version: 3.2 => dev
* stage: Unreviewed => Accepted


Comment:

Thanks for the report, sounds reasonable. Currently, it's possible to add
pagination by overriding `ModelAdmin.history_view()`.

--
Ticket URL: <https://code.djangoproject.com/ticket/33316#comment:1>

Django

unread,
Nov 24, 2021, 4:08:30 PM11/24/21
to django-...@googlegroups.com
#33316: History view should be paginated by default.
-------------------------------------+-------------------------------------
Reporter: Maxim Danilov | Owner: Maxim
| Piskunov
Type: New feature | Status: assigned

Component: contrib.admin | Version: dev
Severity: Normal | Resolution:
Keywords: django_admin_log, | Triage Stage: Accepted
modeladmin history |
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Maxim Piskunov):

* owner: nobody => Maxim Piskunov
* status: new => assigned


--
Ticket URL: <https://code.djangoproject.com/ticket/33316#comment:2>

Django

unread,
Dec 2, 2021, 2:04:51 PM12/2/21
to django-...@googlegroups.com
#33316: History view should be paginated by default.
-------------------------------------+-------------------------------------
Reporter: Maxim Danilov | Owner: (none)

Type: New feature | Status: new
Component: contrib.admin | Version: dev
Severity: Normal | Resolution:
Keywords: django_admin_log, | Triage Stage: Accepted
modeladmin history |
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Maxim Piskunov):

* owner: Maxim Piskunov => (none)
* status: assigned => new


--
Ticket URL: <https://code.djangoproject.com/ticket/33316#comment:3>

Django

unread,
Dec 2, 2021, 7:15:05 PM12/2/21
to django-...@googlegroups.com
#33316: History view should be paginated by default.
-------------------------------------+-------------------------------------
Reporter: Maxim Danilov | Owner: Marcelo
| Galigniana

Type: New feature | Status: assigned
Component: contrib.admin | Version: dev
Severity: Normal | Resolution:
Keywords: django_admin_log, | Triage Stage: Accepted
modeladmin history |
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Marcelo Galigniana):

* owner: nobody => Marcelo Galigniana


* status: new => assigned


--
Ticket URL: <https://code.djangoproject.com/ticket/33316#comment:2>

Django

unread,
Dec 5, 2021, 4:48:27 PM12/5/21
to django-...@googlegroups.com
#33316: History view should be paginated by default.
-------------------------------------+-------------------------------------
Reporter: Maxim Danilov | Owner: Marcelo
| Galigniana
Type: New feature | Status: assigned
Component: contrib.admin | Version: dev
Severity: Normal | Resolution:
Keywords: django_admin_log, | Triage Stage: Accepted
modeladmin history |
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Marcelo Galigniana):

* has_patch: 0 => 1


--
Ticket URL: <https://code.djangoproject.com/ticket/33316#comment:3>

Django

unread,
Dec 9, 2021, 4:12:04 AM12/9/21
to django-...@googlegroups.com
#33316: History view should be paginated by default.
-------------------------------------+-------------------------------------
Reporter: Maxim Danilov | Owner: Marcelo
| Galigniana
Type: New feature | Status: assigned
Component: contrib.admin | Version: dev
Severity: Normal | Resolution:
Keywords: django_admin_log, | Triage Stage: Accepted
modeladmin history |
Has patch: 1 | Needs documentation: 1
Needs tests: 1 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* needs_docs: 0 => 1
* needs_tests: 0 => 1


--
Ticket URL: <https://code.djangoproject.com/ticket/33316#comment:4>

Django

unread,
Dec 15, 2021, 4:55:29 AM12/15/21
to django-...@googlegroups.com
#33316: History view should be paginated by default.
-------------------------------------+-------------------------------------
Reporter: Maxim Danilov | Owner: Marcelo
| Galigniana
Type: New feature | Status: assigned
Component: contrib.admin | Version: dev
Severity: Normal | Resolution:
Keywords: django_admin_log, | Triage Stage: Ready for
modeladmin history | checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* needs_docs: 1 => 0
* needs_tests: 1 => 0
* stage: Accepted => Ready for checkin


--
Ticket URL: <https://code.djangoproject.com/ticket/33316#comment:5>

Django

unread,
Dec 15, 2021, 6:25:35 AM12/15/21
to django-...@googlegroups.com
#33316: History view should be paginated by default.
-------------------------------------+-------------------------------------
Reporter: Maxim Danilov | Owner: Marcelo
| Galigniana
Type: New feature | Status: closed
Component: contrib.admin | Version: dev
Severity: Normal | Resolution: fixed

Keywords: django_admin_log, | Triage Stage: Ready for
modeladmin history | checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak <felisiak.mariusz@…>):

* status: assigned => closed
* resolution: => fixed


Comment:

In [changeset:"ac5cc6cf01463d90aa333d5f6f046c311019827b" ac5cc6c]:
{{{
#!CommitTicketReference repository=""
revision="ac5cc6cf01463d90aa333d5f6f046c311019827b"
Fixed #33316 -- Added pagination to admin history view.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/33316#comment:7>

Django

unread,
Dec 15, 2021, 6:25:36 AM12/15/21
to django-...@googlegroups.com
#33316: History view should be paginated by default.
-------------------------------------+-------------------------------------
Reporter: Maxim Danilov | Owner: Marcelo
| Galigniana
Type: New feature | Status: assigned

Component: contrib.admin | Version: dev
Severity: Normal | Resolution:
Keywords: django_admin_log, | Triage Stage: Ready for
modeladmin history | checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Mariusz Felisiak <felisiak.mariusz@…>):

In [changeset:"ff0b81b56bc2f50e22909f1ad26e9f71d346a7cf" ff0b81b5]:
{{{
#!CommitTicketReference repository=""
revision="ff0b81b56bc2f50e22909f1ad26e9f71d346a7cf"
Refs #33316 -- Moved paginator styles to base.css.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/33316#comment:6>

Reply all
Reply to author
Forward
0 new messages