Add sources settings migrations
Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from mayan.apps.common.serialization import yaml_load
|
||||
from mayan.apps.smart_settings.classes import NamespaceMigration
|
||||
|
||||
|
||||
class SourcesSettingMigration(NamespaceMigration):
|
||||
"""
|
||||
From version 0001 to 0002 backend arguments are no longer quoted
|
||||
but YAML valid too. Changed in version 3.3.
|
||||
"""
|
||||
def sources_staging_file_cache_storage_backend_arguments(self, value):
|
||||
return yaml_load(
|
||||
stream=value or '{}',
|
||||
)
|
||||
Reference in New Issue
Block a user