We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1075cc8 commit 2ffa43eCopy full SHA for 2ffa43e
openedx/core/djangoapps/user_api/accounts/image_helpers.py
@@ -33,9 +33,11 @@ def get_profile_image_storage():
33
An instance of the configured storage backend.
34
"""
35
config = settings.PROFILE_IMAGE_BACKEND
36
- storage_class_path = config.get('class', 'django.core.files.storage.FileSystemStorage')
+ storage_class_path = config.get('class') or getattr(
37
+ settings, 'DEFAULT_FILE_STORAGE', 'django.core.files.storage.FileSystemStorage'
38
+ )
39
storage_class = import_string(storage_class_path)
- return storage_class(**config.get('options'))
40
+ return storage_class(**config.get('options', {}))
41
42
43
def _make_profile_image_name(username):
0 commit comments