Fixed workflow for django 4

This commit is contained in:
2025-04-10 15:08:29 +02:00
parent a143e8e239
commit 86dadac421

View File

@@ -264,6 +264,9 @@ class BasicWorkflow(object):
status_list = [] status_list = []
self._check_status() self._check_status()
if not event.id:
return status_list
heaviest_flag = event.flags.order_by('status').last() heaviest_flag = event.flags.order_by('status').last()
if heaviest_flag: if heaviest_flag:
flags = [] flags = []