Is there any way to custom group models in the admin panel?

397 Aufrufe
Direkt zur ersten ungelesenen Nachricht

Sebastian Macias

ungelesen,
11.07.2007, 18:59:2611.07.07
an Django users
By default models are grouped by app. I really need to be able to
break down that grouping a little bit more. I will have an app with
probably 40-50 models and would like to group those logically instead
of having them all listed under my app name.

Thanks,

Sebastian

Lic. José M. Rodriguez Bacallao

ungelesen,
12.07.2007, 12:02:4212.07.07
an django...@googlegroups.com
I would like to know if this is posible in a simple and clean way, if anyone has the answer, please, post it.

--
Lic. José M. Rodriguez Bacallao
Cupet
-----------------------------------------------------------------
Todos somos muy ignorantes, lo que ocurre es que no todos ignoramos lo mismo.

Recuerda: El arca de Noe fue construida por aficionados, el titanic por profesionales
-----------------------------------------------------------------

Ryan

ungelesen,
12.07.2007, 17:24:2112.07.07
an Django users
I am interested in this as well. I've searched for a way to organize
models in the admin panel but I haven't found anything. It seems
illogical to create multiple apps simply for the fact to separate them
in the admin panel.

Russell Keith-Magee

ungelesen,
12.07.2007, 21:37:2912.07.07
an django...@googlegroups.com

This isn't possible at present. You can collect the fields on an
individual model into groups, but there isn't currently a mechanism to
group models other than by application.

It is an interesting idea though. I would suggestion opening a ticket
requesting this feature - we are currently rewriting the admin views
to use newforms. This particular feature probably won't be a target
for the initial release, but its worth documenting it to make sure we
don't code ourselves into a corner.

Yours,
Russ Magee %-)

James Bennett

ungelesen,
12.07.2007, 21:57:2212.07.07
an django...@googlegroups.com
On 7/12/07, Russell Keith-Magee <freakb...@gmail.com> wrote:
> This isn't possible at present. You can collect the fields on an
> individual model into groups, but there isn't currently a mechanism to
> group models other than by application.

Sure there is, just supply a template 'admin/index.html' which
specifies the grouping you want, and ensure that it's in a location
which will be found before the app-specific one ;)


--
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."

Sebastian Macias

ungelesen,
18.07.2007, 13:05:0218.07.07
an Django users
I just opened a ticket for this.

http://code.djangoproject.com/ticket/4918

Sebastian Macias


On Jul 12, 6:37 pm, "Russell Keith-Magee" <freakboy3...@gmail.com>
wrote:


> On 7/12/07,SebastianMacias <sebast...@sebastianmacias.com> wrote:
>
>
>
> > By default models are grouped by app. I really need to be able to
> > break down that grouping a little bit more. I will have an app with

> > probably 40-50 models and would like togroupthose logically instead


> > of having them all listed under my app name.
>
> This isn't possible at present. You can collect the fields on an

> individual model into groups, but there isn't currently a mechanism togroupmodels other than by application.

onyilimba martins mclaren tochukwu

ungelesen,
16.01.2021, 01:52:1816.01.21
an Django users
I stumbled on the need to do this, is there any pacakage that does this now? the one I saw was last updated 2018

Prashanjeet Halder

ungelesen,
17.01.2021, 12:39:2017.01.21
an Django users
Not preferred but I guess you can do it by following the below-given steps:
As soon as you end up creating your web app
1) Run the command: "python manage.py collectstatic"
2) Check for the static/admin/index.html file.
3) Edit the HTML files as per your need and convenience.

Please let me know if this answers your question  
I am a newbie in  Django, so I would love to know if there is any other way of doing the same. 

Thanks, 
Happy Coding :)

Allen antworten
Antwort an Autor
Weiterleiten
0 neue Nachrichten