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

Deleting the selected flow would require deleting the following protected related objects #161

Open
rupin opened this issue May 24, 2020 · 5 comments

Comments

@rupin
Copy link

rupin commented May 24, 2020

I am trying to delete the entries associated with the model that has the Statefield. I am unable to delete them, because the TransitionalApproval Objects are protected. Please see a video of this in action here.

https://youtu.be/Sin5zWeC0QU

Is this a setting?

My Django River version is django-river==3.2.0

@cyberdude86
Copy link

They are protected objects but I found that you can do a filter for the object_id relating to the state field object and delete all records of TransitionalApprovals model and it will allow you to delete the record

@rupin
Copy link
Author

rupin commented May 25, 2020

Will this be need to be done from the database by issuing queries? I don't have access to it on my instance.

@cyberdude86
Copy link

I do a direct query and then delete each result in order to allow me to delete the parent

@javrasya
Copy link
Owner

javrasya commented Jun 2, 2020

This is a dangerous operation since you can accidentally delete critical things if it was that easy but the reason those objects are protected is that they might be used by other objects. But it should definitely be documented to at least how to do this manually.

@ghost
Copy link

ghost commented Aug 27, 2020

I agree that, even if it's not available directly, it should be documented how to safely do this

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

3 participants