scoursen / django-softdelete

Soft delete for Django ORM, with support for undelete.
Other
376 stars 102 forks source link

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

Open ralokt opened 3 years ago

ralokt commented 3 years ago

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.