Opened 18 years ago

Closed 16 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)

app_specific_index.diff (15.7 KB ) - added by jkocherhans 18 years ago.
patch againt [3534]

Download all attachments as: .zip

Change History (12)

comment:1 by wiz, 18 years ago

Cc: aenor.realm@… added

comment:2 by jkocherhans, 18 years ago

Cc: jkocherhans@… added

comment:3 by anonymous, 18 years ago

Cc: gary.wilson@… added

comment:4 by Adrian Holovaty, 18 years ago

Status: newassigned

by jkocherhans, 18 years ago

Attachment: app_specific_index.diff added

patch againt [3534]

comment:5 by jkocherhans, 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 jkocherhans, 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 Simon G. <dev@…>, 17 years ago

Patch needs improvement: set
Triage Stage: UnreviewedDesign 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 jkocherhans, 17 years ago

Version: newforms-admin

comment:9 by jkocherhans, 17 years ago

Triage Stage: Design decision neededAccepted

comment:10 by cwebber, 17 years ago

Owner: changed from nobody to cwebber
Status: assignednew

comment:11 by Brian Rosner, 16 years ago

Resolution: duplicate
Status: newclosed

Marking this a duplicate of #1390 because the patch there is against newforms-admin and accomplishes the same thing.

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