Opened 18 years ago
Closed 17 years ago
#2292 closed enhancement (duplicate)
[patch] App-specific index pages for the admin system
Reported by: | jkocherhans | Owned by: | cwebber |
---|---|---|---|
Component: | contrib.admin | Version: | newforms-admin |
Severity: | normal | Keywords: | |
Cc: | aenor.realm@…, jkocherhans@…, gary.wilson@… | Triage Stage: | Accepted |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | yes |
Easy pickings: | no | UI/UX: | no |
Description
For sites with a lot of apps installed, the index page of the admin system can get pretty long. I propose (and I'm not the first) to add application specific index pages to Django's admin system. The template path for this page will be ('admin/myapp/app_index.html', 'admin/app_index.html')
where myapp
the is app_label part of the url. This page should be added to the breadcrumbs throughout the admin system as well.
Attachments (1)
Change History (12)
comment:1 by , 18 years ago
Cc: | added |
---|
comment:2 by , 18 years ago
Cc: | added |
---|
comment:3 by , 18 years ago
Cc: | added |
---|
comment:4 by , 18 years ago
Status: | new → assigned |
---|
by , 18 years ago
Attachment: | app_specific_index.diff added |
---|
comment:5 by , 18 years ago
This patch could still be improved via refactoring, and by using the new reverse url lookup stuff (not sure if it's finalized yet) but at least there's no more copy/pasted code. What would really make it clean is a nice interface for app/model metadata. If anyone has any specific nits to pick with this patch, I'll address them. Otherwise consider this submitted for inclusion.
comment:6 by , 18 years ago
I take the copy/paste part back. The admin/app_index.html
template is pretty much just a slightly modified copy of admin/index.html
. The reverse url stuff would provide a nice fix for that though.
comment:7 by , 18 years ago
Patch needs improvement: | set |
---|---|
Triage Stage: | Unreviewed → Design decision needed |
For what it's worth, I like the idea, but if it is given a green-light, it'll need to be rewritten for the newforms version of admin
comment:8 by , 17 years ago
Version: | → newforms-admin |
---|
comment:9 by , 17 years ago
Triage Stage: | Design decision needed → Accepted |
---|
comment:10 by , 17 years ago
Owner: | changed from | to
---|---|
Status: | assigned → new |
comment:11 by , 17 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Marking this a duplicate of #1390 because the patch there is against newforms-admin and accomplishes the same thing.
patch againt [3534]