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>
14 lines
385 B
Python
14 lines
385 B
Python
from __future__ import unicode_literals
|
|
|
|
from django.utils.module_loading import import_string
|
|
|
|
from mayan.apps.common.utils import get_storage_subclass
|
|
|
|
from .settings import (
|
|
setting_storage_backend, setting_storage_backend_arguments
|
|
)
|
|
|
|
storage_detachedsignature = get_storage_subclass(
|
|
dotted_path=setting_storage_backend.value
|
|
)(**setting_storage_backend_arguments.value)
|