﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
17498	Add a way to register a model with the admin but prevent it from appearing on the app index page	kace	nobody	"I have come upon an interesting use case that I believe would benefit from a new option.  I have a model that is normally administered underneath another model via a TabularInline arrangement.  However, this model may also be a foreign key option to other models.  When going to the admin page of these other models, the normal ""+"" sign graphic to add a model is not present (which makes sense, as it is not registered independently with the admin).  However, I need the ""+"" sign add option to appear, but also want the object to not appear in the main index by itself -- because it should be administered via the TabularInline's underneath its normal parent object and two standard paths to the same object cause user confusion.

(There is more detail here:
http://groups.google.com/group/django-users/browse_thread/thread/99f90b66e24cfa60 .)

The patch I propose and attach is against Django version 1.2.5.  It adds an option ""no_index"" to the models' meta class which causes an independently registered model to not appear in the main index or app index.  (The patch is functional, but not pretty.  If the use case and feature are deemed valuable, it might be implemented in a better way. (E.g., it only checks for the presence of ""no_index"" and ignores the value.))"	New feature	closed	contrib.admin		Normal	duplicate	admin	kevchrsmi@… samuraiblog@…	Accepted	1	0	0	1	0	0
