Django

Code

Ticket #4477 (closed: fixed)

Opened 1 year ago

Last modified 1 year ago

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

Reported by: Honza Král <Honza.Kral@gmail.com> Assigned to: adrian
Milestone: Component: django.contrib.admin
Version: other branch Keywords: newforms admin app_label
Cc: Triage Stage: Unreviewed
Has patch: 1 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

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

newforms-admin-5427-app_grouping.diff (2.1 kB) - added by Honza Král <Honza.Kral@gmail.com> on 06/05/07 05:17:30.
Patch correcting the bug

Change History

06/05/07 05:17:30 changed by Honza Král <Honza.Kral@gmail.com>

  • attachment newforms-admin-5427-app_grouping.diff added.

Patch correcting the bug

06/05/07 05:34:43 changed by mtredinnick

  • status changed from new to closed.
  • needs_better_patch changed.
  • resolution set to duplicate.
  • needs_tests changed.
  • needs_docs changed.

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

06/07/07 17:12:58 changed by adrian

  • resolution changed from duplicate to fixed.

(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


Add/Change #4477 ([newforms-admin] Models on index.html aren't grouped by app_label)




Change Properties
Action