Opened 13 years ago

Closed 13 years ago

Last modified 12 years ago

#13800 closed (wontfix)

add form field order meta option

Reported by: nickname123 Owned by: nobody
Component: Forms Version: dev
Severity: Keywords: field order
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


There should be a way to specify the order of form fields when output to html. This would be a nice feature when using forms that inherit fields from other forms so that you can group related fields if they aren't all declared in the same form class. Something like the admin form options would be awesome.

Change History (4)

comment:1 Changed 13 years ago by nickname123

Resolution: worksforme
Status: newclosed

comment:2 Changed 13 years ago by nickname123

Resolution: worksforme
Status: closedreopened

I was not specific enough in my first description. This option should be different than the current fields option and not determine if a field is added to the form or not. It should only be for html rendering order. If the field is not in the order_by option, but included in the form, then the field should be ordered last.

comment:3 Changed 13 years ago by Russell Keith-Magee

Resolution: wontfix
Status: reopenedclosed

I'm afraid I still don't see what you are requesting. The fields option is used to determine which fields are included on a form, and in which order. order_by (or ordering, depending on context) is used to determine which order results are presented in - It has nothing to do with field order.

If you still think you have a feature proposal, here, I would suggest starting a discussion on django-developers where you flesh out your idea, including a full example of what you think it would look like in practice.

comment:4 Changed 12 years ago by Jacob

milestone: 1.3

Milestone 1.3 deleted

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