Use a dynamic subclass instead that always deconstructs to a fake subclass with a __eq__ method that always returns True. This should trick makemigrations into never creating a new migrations for changes to the storage class or the arguments. Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
9 lines
295 B
Python
9 lines
295 B
Python
from __future__ import unicode_literals
|
|
|
|
from .settings import setting_shared_storage, setting_shared_storage_arguments
|
|
from .utils import get_storage_subclass
|
|
|
|
storage_sharedupload = get_storage_subclass(
|
|
dotted_path=setting_shared_storage.value
|
|
)(**setting_shared_storage_arguments.value)
|