You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ran into this because django checks using the default manager, see:
def _do_update(self, base_qs, using, pk_val, values, update_fields, forced_update):
"""
This method will try to update the model. If the model was updated (in
the sense that an update query was done and a matching row was found
from the DB) the method will return True.
"""
filtered = base_qs.filter(pk=pk_val)
...
That base_qs has filtered out the soft deleted model and so it doesn't think any models were changed
@oppianmatt Thanks for investigation, looks like _do_update overriding will do the job but I'm still not sure that it is a good idea to allow removed objects manipulations. I need some time to turn over in mind this case.
No description provided.
The text was updated successfully, but these errors were encountered: