It's called "soft-delete" -- the practice of adding a "deleted" boolean
field(*) and filtering on it in most operations. I don't think there's
anything built into Django, but there appear to be several 3rd-party
apps and relevant blog posts.
(*) Some people prefer more elaborate metadata -- who and why deleted
etc -- but in the end, that's equivalent.
(*) If you're implementing it yourself, and performance is important,
also have a look at
https://docs.djangoproject.com/en/4.2/ref/models/indexes/#condition
HTH,
Shai.
On Sun, 22 Oct 2023 00:25:41 +0300
alonn <
alon...@gmail.com> wrote:
> allowing a user that delete a model instance a place to "see" deleted
> instances, and "restore" them (for specific instances)
> *Tech blog:*
https://medium.com/@alonisser
> *Personal Blog:*
degeladom.wordpress.com