Renamed setting LOCK_MANAGER_DEFAULT_BACKEND to LOCK_MANAGER_BACKEND. Add help text to settings.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2018-08-20 02:50:48 -04:00
parent 958f85eb1e
commit dee7dd5429
5 changed files with 46 additions and 14 deletions

View File

@@ -9,12 +9,17 @@ from smart_settings import Namespace
namespace = Namespace(name='signatures', label=_('Document signatures'))
setting_storage_backend = namespace.add_setting(
global_name='SIGNATURES_STORAGE_BACKEND',
default='django.core.files.storage.FileSystemStorage'
default='django.core.files.storage.FileSystemStorage',
global_name='SIGNATURES_STORAGE_BACKEND', help_text=_(
'Path to the Storage subclass to use when storing detached '
'signatures.'
)
)
setting_storage_backend_arguments = namespace.add_setting(
global_name='SIGNATURES_STORAGE_BACKEND_ARGUMENTS',
default='{{location: {}}}'.format(
os.path.join(settings.MEDIA_ROOT, 'document_signatures')
), quoted=True
), quoted=True, help_text=_(
'Arguments to pass to the SIGNATURE_STORAGE_BACKEND. '
)
)