Opened 18 years ago
Closed 18 years ago
#6878 closed (duplicate)
Add ordering to newforms classes
| Reported by: | David Cramer | Owned by: | nobody |
|---|---|---|---|
| Component: | Forms | Version: | dev |
| Severity: | Keywords: | ||
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
I'd like to propose adding an ordering attribute to a Meta class in newforms to allow overriding the field ordering for things like as_p.
e.g.
class Form:
name = Char
text = Char
class Meta:
ordering = ('text', 'name')
Note:
See TracTickets
for help on using tickets.
Duplicate of #5986, which has several proposals and recent activity.