Code

Opened 4 years ago

Closed 4 years ago

Last modified 3 years ago

#13800 closed (wontfix)

add form field order meta option

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

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.

Attachments (0)

Change History (4)

comment:1 Changed 4 years ago by nickname123

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to worksforme
  • Status changed from new to closed

comment:2 Changed 4 years ago by nickname123

  • Resolution worksforme deleted
  • Status changed from closed to reopened

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 4 years ago by russellm

  • Resolution set to wontfix
  • Status changed from reopened to 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.

comment:4 Changed 3 years ago by jacob

  • milestone 1.3 deleted

Milestone 1.3 deleted

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.