diff --git a/swh/deposit/migrations/0021_deposit_origin_url_20201124_1438.py b/swh/deposit/migrations/0021_deposit_origin_url_20201124_1438.py --- a/swh/deposit/migrations/0021_deposit_origin_url_20201124_1438.py +++ b/swh/deposit/migrations/0021_deposit_origin_url_20201124_1438.py @@ -7,7 +7,7 @@ def fill_origin_url(apps, schema_editor): for deposit in Deposit.objects.all(): if deposit.origin_url is None: - deposit.origin_url = guess_deposit_origin_url() + deposit.origin_url = guess_deposit_origin_url(deposit) deposit.save()