Просмотр исходного кода

Fixes model load issue when cancelling migrations

Alessandro Pilotti 9 лет назад
Родитель
Сommit
cbbc82815b
1 измененных файлов с 5 добавлено и 3 удалено
  1. 5 3
      coriolis/db/api.py

+ 5 - 3
coriolis/db/api.py

@@ -215,9 +215,11 @@ def _get_migration_task_query_options(query):
         orm.joinedload("executions").
         joinedload("tasks").
         joinedload("progress_updates")).options(
-            orm.joinedload("executions").
-            joinedload("tasks").
-            joinedload("events"))
+        orm.joinedload("executions").
+        joinedload("tasks").
+        joinedload("events")).options(
+        orm.joinedload("executions").
+        joinedload("action"))
 
 
 @enginefacade.reader