Skip to content

Commit 2151e16

Browse files
committed
Fix stupidity
1 parent e62a1cd commit 2151e16

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

massmigration/loader.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@ def is_valid_migration_id(name):
6767
return bool(re.match(r"^\d{1,5}_[a-z0-9_]+$", name))
6868

6969

70-
def load_migration(app_config, filename):
71-
""" Return in instance of the migration class from the given filename from the given app_config.
70+
def load_migration(app_config, migration_id):
71+
""" Return in instance of the migration class from the given migration_id from the given
72+
app_config.
7273
"""
7374
module_str = app_config.name
74-
migration_id = migration_id_from_filename(filename)
7575
class_path_str = f"{module_str}.{MIGRATIONS_FOLDER}.{migration_id}.Migration"
7676
cls = import_string(class_path_str)
7777
app_label = app_config.label

0 commit comments

Comments
 (0)