Settings: Update defaults formats

Update the default values of the settings which pass
arguments to backends to be valid Python values and not
YAML strings.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2018-11-26 17:45:43 -04:00
parent 5c1eb59a1a
commit 51f15a3131
6 changed files with 21 additions and 32 deletions
+5 -6
View File
@@ -20,9 +20,8 @@ setting_documentimagecache_storage = namespace.add_setting(
)
setting_documentimagecache_storage_arguments = namespace.add_setting(
global_name='DOCUMENTS_CACHE_STORAGE_BACKEND_ARGUMENTS',
default='{{location: {}}}'.format(
os.path.join(settings.MEDIA_ROOT, 'document_cache')
), help_text=_(
default={'location': os.path.join(settings.MEDIA_ROOT, 'document_cache')},
help_text=_(
'Arguments to pass to the DOCUMENT_CACHE_STORAGE_BACKEND.'
)
)
@@ -117,9 +116,9 @@ setting_storage_backend = namespace.add_setting(
)
setting_storage_backend_arguments = namespace.add_setting(
global_name='DOCUMENTS_STORAGE_BACKEND_ARGUMENTS',
default='{{location: {}}}'.format(
os.path.join(settings.MEDIA_ROOT, 'document_storage')
), help_text=_('Arguments to pass to the DOCUMENT_STORAGE_BACKEND.')
default={
'location': os.path.join(settings.MEDIA_ROOT, 'document_storage')
}, help_text=_('Arguments to pass to the DOCUMENT_STORAGE_BACKEND.')
)
setting_thumbnail_height = namespace.add_setting(
global_name='DOCUMENTS_THUMBNAIL_HEIGHT', default='', help_text=_(