Code

Opened 7 years ago

Closed 7 years ago

#3054 closed defect (fixed)

[newforms] Form doesn't define order of form fields

Reported by: Esaj Owned by: adrian
Component: Core (Other) Version: master
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

Form.as_table() seems to output the form fields in an arbitrary order. Form fields should have some kind of order - maybe use a list instead of a dict to store them in the Form ?

Attachments (0)

Change History (3)

comment:1 Changed 7 years ago by adrian

Good call. We can use the same technique we use in Django models to keep the fields in the right order.

comment:2 Changed 7 years ago by adrian

(In [4092]) newforms: Added unit test to test field order. Refs #3054

comment:3 Changed 7 years ago by adrian

  • Resolution set to fixed
  • Status changed from new to closed

Fixed in [4093].

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.