Open julialoh opened 4 years ago
django-river allows to track any flow on any model object. You can have a model that is with a django river state and you can create your flow that consists of two state like Initialized -> Approved by using the admin. It is up to you how you want to create a flow. Then all you need to do is to create an object of this model every time your non admin user submits a form. Then you can implement something to approve this by using django-river APIs for your admin user.
Thank you for the comment!! Right now when I submit the form, the state automatically is Draft and an admin has to change it to Pending Approval, Pending Approval->Approved, etc. Do you know if it would be possible to do something along the lines of a user submits one form, and that object enters the Draft state, but when they update the form in UpdateView, the object enters the Pending Approval state?
My app is comprised of a form. I was wondering if it's possible to use django river so that when a client (non-admin) submits the form, the data automatically updates state to something like "Approved," which then awaits approval by an admin. Is this possible?