Not showing a model from the models' list in admin

2013-07-01 Thread Victor
Issuing the "localhost:8000/admin" request in the browser I am presented with the list of all registered models. I don't want one of this models to be visualized in that list even though it is widely used and referenced by other models. How can I do that without unregistering the model? Ciao

Re: Models list

2008-09-01 Thread Fabio Natali
Fabio Natali wrote: [...] > I need a table similar to what you get when entering the admin panel, > that is a list of all my models inside a certain app. Hi Fabio! Following code in your views.py and a for loop in your template will do the trick: def index(request): models_list = [] for

Models list

2008-09-01 Thread fabio natali
Hi all of you! I need a table similar to what you get when entering the admin panel, that is a list of all my models inside a certain app. So, say my app is called virtual_shop, then I would need to get Buyer, Product, Transaction, ... Is there a way to accomplish this via generic views? Is the