Closed rupin closed 5 years ago
approve
is not a class API it is an instance API. You can access it per model object. Supposed to be something like this;
flow_object.river.stage.approve(as_user=logged_in_user)
Otherwise django-river
can't know what object to approve.
Thanks!
I am trying to approve a Flow. The code works without error for
flow_objects_awaiting_approval = Flow.river.stage.get_on_approval_objects(as_user=logged_in_user)
but when the same line is changed to
approveObjects = Flow.river.stage.approve(as_user=logged_in_user)
It throws the error below
What am I doing wrong?