Add option to forms.FilePathField to sort choices
|Reported by:||FunkyBob||Owned by:||nobody|
|Has patch:||yes||Needs documentation:||yes|
|Needs tests:||yes||Patch needs improvement:||no|
I (and my users) find it annoying that there's no sorting on FilePathField choices.
This patch allows a sort parameter to be passed. If set to True, it will sort lexically on the display value. If a callable is passed, it will be called with the field and choices as its arguments.
Change History (9)
Changed 3 years ago by FunkyBob
comment:1 Changed 3 years ago by anonymous
- Component changed from Uncategorized to Forms
- Has patch set
- milestone set to 1.3
- Needs documentation set
- Needs tests unset
- Patch needs improvement unset