- Unify all conditional YAML load under utils.smart_yaml_load. - Update all setting migrations to use the smart setting test mixin to create the test config file. Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
14 lines
454 B
Python
14 lines
454 B
Python
from __future__ import unicode_literals
|
|
|
|
from mayan.apps.smart_settings.classes import NamespaceMigration
|
|
from mayan.apps.smart_settings.utils import smart_yaml_load
|
|
|
|
|
|
class CommonSettingMigration(NamespaceMigration):
|
|
"""
|
|
From version 0001 to 0002 backend arguments are no longer quoted
|
|
but YAML valid too. Changed in version 3.3.
|
|
"""
|
|
def common_shared_storage_arguments_0001(self, value):
|
|
return smart_yaml_load(value=value)
|