Commit 75bf57c3 authored by Michal Čihař's avatar Michal Čihař

Remove unused parameters

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent a138d1e3
......@@ -45,7 +45,7 @@ def data_dir(component):
return os.path.join(appsettings.DATA_DIR, component)
def migrate_data_dirs(*args, **kwargs):
def migrate_data_dirs():
"""
Migrate data directory from old locations to new consolidated data
directory.
......@@ -70,7 +70,7 @@ def migrate_data_dirs(*args, **kwargs):
shutil.copy(source, target)
def unmigrate_data_dirs(*args, **kwargs):
def unmigrate_data_dirs():
"""
Reverses data paths migration.
"""
......
......@@ -13,7 +13,7 @@ class Migration(migrations.Migration):
operations = [
migrations.RunPython(
migrate_data_dirs,
reverse_code=unmigrate_data_dirs,
lambda apps, schema_editor: migrate_data_dirs(),
reverse_code=lambda apps, schema_editor: unmigrate_data_dirs(),
),
]
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment