We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e62a1cd commit 2151e16Copy full SHA for 2151e16
massmigration/loader.py
@@ -67,11 +67,11 @@ def is_valid_migration_id(name):
67
return bool(re.match(r"^\d{1,5}_[a-z0-9_]+$", name))
68
69
70
-def load_migration(app_config, filename):
71
- """ Return in instance of the migration class from the given filename from the given app_config.
+def load_migration(app_config, migration_id):
+ """ Return in instance of the migration class from the given migration_id from the given
72
+ app_config.
73
"""
74
module_str = app_config.name
- migration_id = migration_id_from_filename(filename)
75
class_path_str = f"{module_str}.{MIGRATIONS_FOLDER}.{migration_id}.Migration"
76
cls = import_string(class_path_str)
77
app_label = app_config.label
0 commit comments