renumber-migrations: Fix last_correct_migration code.

This commit is contained in:
Tim Abbott 2017-09-22 07:51:05 -07:00
parent 1edd137263
commit b1dafe5d9d
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ def resolve_conflicts(conflicts, files_list):
order = list(map(int, order_input.split()))
validate_order(order, len(conflicts))
last_correct_migration = conflicts[order[0]]
last_correct_migration = conflicts[order[0] - 1]
last_correct_migration = last_correct_migration.replace('.py', '')
renumber_migration(conflicts, order, last_correct_migration)