#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 |
Description
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 by , 14 years ago
Resolution: | → worksforme |
---|---|
Status: | new → closed |
comment:2 by , 14 years ago
Resolution: | worksforme |
---|---|
Status: | closed → reopened |
comment:3 by , 14 years ago
Resolution: | → wontfix |
---|---|
Status: | reopened → closed |
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.
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.