Code

Opened 6 years ago

Closed 6 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:

Description

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')),})

Attachments (0)

Change History (1)

comment:1 Changed 6 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.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.