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
When try to get an object we expected it to not be soft deleted yet. Maybe a new method called restore_or_create() would be more explicit to the user, than this methods restores if is deleted, otherwise creates the instance. What about it?
A simple issue, demonstrated better by example:
Simply replacing it with
get_or_restore
does not solve how I intend to use this method for example:update_or_create
also usesget_or_create
, maybe it would be better to overrideget_or_create
and catch theSoftDeleteException
?The text was updated successfully, but these errors were encountered: