#arranging the data in admin panel

48 messages · Page 1 of 1 (latest)

marsh pendant
#

Hello. I have a question about structuring my data within admin panel – I have on admin panel chapters like «Ratings», «Seats», which are not not arranged as logical blocks (don’t have logically coherent structure).
As example for «Seats» - seats_panel_1.jpg
For «Rating» - ratings_panel_1.jpg
So far, how can I arrange this data in the best possible way, so that they will be logically understandable and will be appropriate to business structure of my project?

vital swift
#

You will need to share the images via an image sharing site.

marsh pendant
marsh pendant
# vital swift You will need to share the images via an image sharing site.

Hello. I have a question about structuring my data within admin panel – I have on admin panel chapters like «Ratings», «Seats», which are not not arranged as logical blocks (don’t have logically coherent structure).
As example for «Seats» - https://1drv.ms/i/s!AhFknoAD2KhVkytljMI3iFK0XeFz?e=2yUqBj
For «Rating» - https://1drv.ms/i/s!AhFknoAD2KhVkypa8qxAti3csJ1v?e=dTm7AN
So far, how can I arrange this data in the best possible way, so that they will be logically understandable and will be appropriate to business structure of my project?

vital swift
#

So you are querying the order of the columns?

marsh pendant
vital swift
#

What does that mean? Each row is a row in the database the columns are ordered by the list_display attribute on the admin class

marsh pendant
#

Logical structure of it

vital swift
#

It's a table of data

marsh pendant
vital swift
#

Well yes, the admin is generally designed to be used by technical people working with the code base, not end users.

fleet sequoia
#

Seats are usually depicted like this:

#

You're not going to be able to get them more coherent in a standard table than "order by Row then Number"

fleet sequoia
#

I still have no clue what you're actually asking for.

#

The built-in Django admin can display basic tables of data, with add/edit/delete forms for each object.

marsh pendant
marsh pendant
#

But on title page - only airplane showed

fleet sequoia
#

You can override admin templates such as the "edit" template for an Airplane, if you wanted to display other information on that page.

fleet sequoia
#

So why are you talking about the Django admin?

marsh pendant
#

Whic is related to Django templates

fleet sequoia
#

So you're not wanting to customise the Django admin?

#

You're just asking for general "is this layout a good idea for my own admin page I'm designing" ?

marsh pendant
#

One moment

marsh pendant
#

I can't even find how to override edit feature here

vital swift
#

Are you expecting to completely customise the Django admin edit page?

fleet sequoia
#

Wait I thought this wasn't about the Django admin?

marsh pendant
vital swift
#

I am 🤏 close to locking this thread unless there is a clear understandable question

fleet sequoia
#

Honestly, man, you make no sense in the vast majority of things you say.

marsh pendant
#
  1. On list display page of Seats I want to have airplane name in which such seats are present
marsh pendant
#

Like this

#

So, now it's clear, and understandable

fleet sequoia
#

In the Django admin?

marsh pendant
#

Yes

fleet sequoia
#

so why did you mention DRF

fleet sequoia
fleet sequoia
#

Even then you could probably make it ready only, using Inlines

marsh pendant
fleet sequoia