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

Can't refresh_from_db if model instance is soft deleted #73

Open
ralokt opened this issue Jan 19, 2021 · 0 comments
Open

Can't refresh_from_db if model instance is soft deleted #73

ralokt opened this issue Jan 19, 2021 · 0 comments

Comments

@ralokt
Copy link

ralokt commented Jan 19, 2021

This problem is basically the same as described in this stackoverflow question. Soft deleted instances are not found by the default manager, and refresh_from_db unfortunately uses that. A possible solution is discussed in the accepted answer.

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

1 participant