Fixed workflow for django 4
This commit is contained in:
@@ -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 = []
|
||||||
|
|||||||
Reference in New Issue
Block a user