Opened 7 years ago

Closed 7 years ago

#9196 closed (invalid)

admin display multiple fields on the same line

Reported by: __sam Owned by: nobody
Component: contrib.admin Version: 1.0
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


it seems that when you have got just 2 fields in a fieldset and you want to put them on the same line, it doesn't work :
{'fields': (('public_state','private_state')),})

Change History (1)

comment:1 Changed 7 years ago by kmtracey

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

This is Python's curse of the missing trailing comma. Change your spec to:

{'fields': (('public_state','private_state'),)})

and the fields will be printed on the same line.

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