Преглед изворни кода

Fixes model load issue when cancelling migrations

Alessandro Pilotti пре 9 година
родитељ
комит
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