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
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
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
3 matches
Mail list logo