Opened 13 years ago

Closed 13 years ago

#3054 closed defect (fixed)

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

Reported by: Esaj Owned by: Adrian Holovaty
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: no UI/UX: no


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 ?

Change History (3)

comment:1 Changed 13 years ago by Adrian Holovaty

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

comment:2 Changed 13 years ago by Adrian Holovaty

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

comment:3 Changed 13 years ago by Adrian Holovaty

Resolution: fixed
Status: newclosed

Fixed in [4093].

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