Let ClearableFileInput work with other fields
|Reported by:||Vlastimil Zíma||Owned by:||Vlastimil Zíma|
|Cc:||Daniele Procida||Triage Stage:||Accepted|
|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 (10)
comment:1 Changed 4 years ago by
|Cc:||Daniele Procida added|
|Triage Stage:||Unreviewed → Accepted|
comment:6 Changed 4 years ago by
|Owner:||changed from nobody to Vlastimil Zíma|
|Status:||new → assigned|