Skip to content

Commit

Permalink
Set assigned time on auto-assign. Close viewflow#331
Browse files Browse the repository at this point in the history
  • Loading branch information
kmmbvnr committed Nov 12, 2021
1 parent 2b6de77 commit 38dbac7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions viewflow/flow/activation.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from django.utils.timezone import now
from ..activation import Activation, StartActivation, ViewActivation, STATUS
from ..exceptions import FlowRuntimeError

Expand Down Expand Up @@ -89,6 +90,7 @@ def create_task(cls, flow_task, prev_activation, token):
owner = flow_task.calc_owner(activation)
if owner:
task.owner = owner
task.assigned = now()
task.status = STATUS.ASSIGNED

return task

0 comments on commit 38dbac7

Please sign in to comment.