Skip to content

Commit a4191ec

Browse files
committed
Bugfix - Syntax error view
1 parent 3055d95 commit a4191ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dbaas/logical/views.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1073,13 +1073,13 @@ def retry_migrate_engine(self):
10731073
error = "Database does not have engine migrations"
10741074
elif not last_migration.is_status_error:
10751075
error = "Cannot do retry, last engine migration. Status is '{}'!".format(
1076-
last_upgrade.get_status_display()
1076+
last_migration.get_status_display()
10771077
)
10781078
else:
10791079
since_step = last_migration.current_step
10801080

10811081
if error:
1082-
messages.add_message(request, messages.ERROR, error)
1082+
messages.add_message(self.request, messages.ERROR, error)
10831083
else:
10841084
self.migrate_engine(last_migration.target_plan.pk, since_step)
10851085

0 commit comments

Comments
 (0)