determine and document the use of default option in context of FileField
|Reported by:||ptone||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Currently the 'default' option in the definition of a "FileField" just gets passed on to Field where it is just stored in the database as a raw string.
There are several other potentially viable things FileField could do, including checking to see if it is a valid path to a file, and then copy that to "upload_to" and make that the field's contents.
Either way, whatever is the "proper" action for default, even if it remains unchanged, it should be documented in the FileField docs.
Change History (4)
comment:1 Changed 5 years ago by aaugustin
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
- Triage Stage changed from Unreviewed to Accepted
- Type changed from Uncategorized to Cleanup/optimization