Django

Code

Ticket #2292 (closed: duplicate)

Opened 2 years ago

Last modified 8 months ago

[patch] App-specific index pages for the admin system

Reported by: jkocherhans Assigned to: cwebber
Milestone: Component: Admin interface
Version: newforms-admin Keywords:
Cc: aenor.realm@gmail.com, jkocherhans@gmail.com, gary.wilson@gmail.com Triage Stage: Accepted
Has patch: 1 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 1

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

app_specific_index.diff (15.7 kB) - added by jkocherhans on 08/07/06 15:45:55.
patch againt [3534]

Change History

07/06/06 01:40:50 changed by wiz

  • cc set to aenor.realm@gmail.com.

07/06/06 10:30:06 changed by jkocherhans

  • cc changed from aenor.realm@gmail.com to aenor.realm@gmail.com, jkocherhans@gmail.com.

07/07/06 22:33:17 changed by anonymous

  • cc changed from aenor.realm@gmail.com, jkocherhans@gmail.com to aenor.realm@gmail.com, jkocherhans@gmail.com, gary.wilson@gmail.com.

07/09/06 21:38:30 changed by adrian

  • status changed from new to assigned.

08/07/06 15:45:55 changed by jkocherhans

  • attachment app_specific_index.diff added.

patch againt [3534]

08/07/06 16:57:45 changed by jkocherhans

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.

08/07/06 17:04:09 changed by jkocherhans

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.

02/17/07 03:53:48 changed by Simon G. <dev@simon.net.nz>

  • needs_better_patch set to 1.
  • stage changed from Unreviewed to 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

09/14/07 13:19:03 changed by jkocherhans

  • version set to newforms-admin.

09/14/07 13:19:41 changed by jkocherhans

  • stage changed from Design decision needed to Accepted.

09/14/07 13:21:23 changed by cwebber

  • owner changed from nobody to cwebber.
  • status changed from assigned to new.

12/07/07 17:37:01 changed by brosner

  • status changed from new to closed.
  • resolution set to duplicate.

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


Add/Change #2292 ([patch] App-specific index pages for the admin system)




Change Properties
Action