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
FileUploadService
is now
configurable through theUPLOADED_AVATARS_PATH
Django setting and the
get_unique_filename
method. If theUPLOADED_AVATARS_PATH
setting is
not set, a default ofuploaded/avatars
will be used.To enable this customizability,
AvatarServiceConfigForm
s 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.