Make the upload location of avatars configurable
Review Request #8841 — Created March 25, 2017 and submitted — Latest diff uploaded
The upload location of avatars via the
FileUploadServiceis now
configurable through theUPLOADED_AVATARS_PATHDjango setting and the
get_unique_filenamemethod. If theUPLOADED_AVATARS_PATHsetting is
not set, a default ofuploaded/avatarswill be used.To enable this customizability,
AvatarServiceConfigForms are now
passed the instance of the service that instantiated them as a keyword
argument. This allows the forms to look up static settings on the
services.
Ran unit tests.