9 lines
330 B
Python
9 lines
330 B
Python
from django.core.files.storage import FileSystemStorage
|
|
|
|
class NoLocationMigrationFileSystemStorage(FileSystemStorage):
|
|
|
|
def deconstruct(obj): # pylint: disable=no-self-argument
|
|
path, args, kwargs = FileSystemStorage.deconstruct(obj)
|
|
kwargs["location"] = None
|
|
return (path, args, kwargs)
|