Let ClearableFileInput work with other fields
|Reported by:||vzima||Owned by:||vzima|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
ClearableFileInput is very useful widget, problem is that it can only be used with FileField as it only expects FieldFile as an initial value.
I propose a decomposition (see patch) which allows easy modification to use this widget with other fields.
Example: File input is used over data which are stored in database.
This problem is remotely connected with #15667 which may (or may not) solve this issue.
Change History (7)
Changed 7 months ago by vzima
comment:1 Changed 7 months ago by EvilDMP
- Cc EvilDMP added
- Needs documentation unset
- Needs tests set
- Patch needs improvement unset
- Triage Stage changed from Unreviewed to Accepted