Opened 17 years ago

Closed 17 years ago

Last modified 17 years ago

#4477 closed (fixed)

[newforms-admin] Models on index.html aren't grouped by app_label

Reported by: Honza Král <Honza.Kral@…> Owned by: Adrian Holovaty
Component: contrib.admin Version: other branch
Severity: Keywords: newforms admin app_label
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

When I register several models from one application to django.contrib.admin.site they don't appear in the same table on admin's index page. It looks like this:

+--------------------------+
| MyApp                    |
+--------------------------+
| MyModel1                 |
+--------------------------+

+--------------------------+
| OtherApp                 |
+--------------------------+
| NotMyModel               |
+--------------------------+

+--------------------------+
| MyApp                    |
+--------------------------+
| MyModel2                 |
+--------------------------+

where it should imho be:

+--------------------------+
| MyApp                    |
+--------------------------+
| MyModel1                 |
| MyModel2                 |
+--------------------------+

+--------------------------+
| OtherApp                 |
+--------------------------+
| NotMyModel               |
+--------------------------+

Attachments (1)

newforms-admin-5427-app_grouping.diff (2.1 KB ) - added by Honza Král <Honza.Kral@…> 17 years ago.
Patch correcting the bug

Download all attachments as: .zip

Change History (3)

by Honza Král <Honza.Kral@…>, 17 years ago

Patch correcting the bug

comment:1 by Malcolm Tredinnick, 17 years ago

Resolution: duplicate
Status: newclosed

Dupe of #4258 (which also has a patch).

comment:2 by Adrian Holovaty, 17 years ago

Resolution: duplicatefixed

(In [5441]) newforms-admin: Fixed #4258 and #4477 -- Changed admin index page to group by applications, and alphabetized things. Thanks to Matthias Pronk and Honza Kral for the patches; I ended up using a hybrid of both

Note: See TracTickets for help on using tickets.
Back to Top