[Django] #27229: Add aggregates to change list

8 views
Skip to first unread message

Django

unread,
Sep 15, 2016, 10:47:41 AM9/15/16
to django-...@googlegroups.com
#27229: Add aggregates to change list
-------------------------------+--------------------
Reporter: dorfire | Owner: nobody
Type: New feature | Status: new
Component: contrib.admin | Version: master
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------
The change list page in the administration panel should be able to display
aggregate results.

For example - a sum of one of the columns that is displayed in the last
row of the table.

See attached screenshot for another example.

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

Django

unread,
Sep 15, 2016, 10:48:05 AM9/15/16
to django-...@googlegroups.com
#27229: Add aggregates to change list
---------------------------+----------------------------

Reporter: dorfire | Owner: nobody
Type: New feature | Status: new
Component: contrib.admin | Version: master
Severity: Normal | Resolution:

Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Easy pickings: 0
UI/UX: 0 |
---------------------------+----------------------------
Changes (by dorfire):

* Attachment "django-admin.png" added.

Screenshot with aggregate cells

Django

unread,
Sep 15, 2016, 10:48:50 AM9/15/16
to django-...@googlegroups.com
#27229: Add aggregates to change list
-------------------------------+--------------------------------------
Reporter: dorfire | Owner: dorfire
Type: New feature | Status: assigned
Component: contrib.admin | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

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

* owner: nobody => dorfire
* needs_better_patch: => 0
* status: new => assigned
* needs_tests: => 0
* needs_docs: => 0


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

Django

unread,
Sep 15, 2016, 11:04:23 AM9/15/16
to django-...@googlegroups.com
#27229: Add aggregates to change list
-------------------------------+--------------------------------------
Reporter: dorfire | Owner: dorfire
Type: New feature | Status: assigned
Component: contrib.admin | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed

Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------

Comment (by timgraham):

I guess this is the same or similar idea as #14336? It helps if you can
explain a bit about what the implementation looks like. I guess you know
it's [http://stackoverflow.com/questions/22517999/django-admin-interface-
to-display-aggregates already possible to some extent ].

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

Django

unread,
Sep 16, 2016, 8:26:16 PM9/16/16
to django-...@googlegroups.com
#27229: Allow using aggregates in ModelAdmin.list_display
-------------------------------+------------------------------------

Reporter: dorfire | Owner: dorfire
Type: New feature | Status: assigned
Component: contrib.admin | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1

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

* needs_better_patch: 0 => 1
* has_patch: 0 => 1
* stage: Unreviewed => Accepted


Comment:

The [https://github.com/django/django/pull/7248 PR] looks interesting, but
I'd like to see a proposal that also accommodates annotations (if even not
implemented right now, it would be nice to figure out the design first). I
don't know if it might be worth trying to be able to use expressions and
aggregates directly in `list_display` . In any case, I'd like to see a
discussion on the DevelopersMailingList to get a consensus on the design.

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

Django

unread,
Sep 20, 2016, 11:18:13 AM9/20/16
to django-...@googlegroups.com
#27229: Allow using aggregates in ModelAdmin.list_display
-------------------------------+------------------------------------
Reporter: dorfire | Owner: dorfire
Type: New feature | Status: assigned
Component: contrib.admin | Version: master

Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------+------------------------------------

Comment (by dorfire):

I'll open a discussion in the mailing list. Thanks

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

Django

unread,
Oct 2, 2016, 10:52:40 AM10/2/16
to django-...@googlegroups.com
#27229: Allow using aggregates in ModelAdmin.list_display
-------------------------------+------------------------------------
Reporter: Dor | Owner: Dor

Type: New feature | Status: assigned
Component: contrib.admin | Version: master

Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------+------------------------------------

Comment (by Dor):

Can't get enough traction in the mailing list:
https://groups.google.com/forum/#!topic/django-developers/T1-80RV8b5g

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

Django

unread,
Oct 2, 2023, 5:31:58 PM10/2/23
to django-...@googlegroups.com
#27229: Allow using aggregates in ModelAdmin.list_display
-------------------------------+------------------------------------
Reporter: Dor | Owner: Dor
Type: New feature | Status: assigned
Component: contrib.admin | Version: dev

Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------+------------------------------------
Changes (by Olivier Dalang):

* cc: Olivier Dalang (added)


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

Reply all
Reply to author
Forward
0 new messages