Commit b1fd6638 by Kálmán Viktor

dashboard: filter out child activities

parent ea948deb
......@@ -979,6 +979,6 @@ class Instance(AclBase, VirtualMachineDescModel, StatusModel, OperatedMixin,
def get_latest_activity_in_progress(self):
try:
return InstanceActivity.objects.filter(
instance=self, succeeded=None).latest("started")
instance=self, succeeded=None, parent=None).latest("started")
except InstanceActivity.DoesNotExist:
return None
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment