Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[question] Does this work with client side? #173

Open
julialoh opened this issue Sep 16, 2020 · 2 comments
Open

[question] Does this work with client side? #173

julialoh opened this issue Sep 16, 2020 · 2 comments

Comments

@julialoh
Copy link

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?

@javrasya
Copy link
Owner

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.

@julialoh
Copy link
Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants