Opened 6 years ago

Closed 6 years ago

#28994 closed New feature (wontfix)

Create possibility to merge several fields into one line with fieldset option

Reported by: Rovshan Musayev Owned by: nobody
Component: contrib.admin Version: 2.0
Severity: Normal Keywords: django-admin
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Currently with fields or fieldsets option it's possible to show admin fields into one line,

fields=(('Field1','Field2'), ('Field3','Field4'))

Field1 | Field2
Field3 | Field4

But if I would like to merge Field 2 and Field 4 into one field and have one big field, it's impossible.

Field1 |
Field2 | Field4
Field3 |

Field4 is one big field here

It's very useful for example if I want to show one big picture(avatar) on the right(or left) side of the form. I hope it's clear what I mean

Change History (3)

comment:1 by Tim Graham, 6 years ago

No, I'm not sure what you mean. Specifically, 'merge Field 2 and Field 4 into one field and have one big field" is unclear. Maybe if you provided a sample project that would help clarify.

comment:2 by Rovshan Musayev, 6 years ago

For example, to reorganize fields like in the picture: https://cdn.discourse.org/sitepoint/uploads/default/21471/b96216ac5f87b80c.png. Is it only way currently to override change_form.html and fieldset.html ?

comment:3 by Tim Graham, 6 years ago

Resolution: wontfix
Status: newclosed

Yes, I think complex form layouts like that are outside the scope of the admin.

Note: See TracTickets for help on using tickets.
Back to Top