Answer the question
In order to leave comments, you need to log in
How to Archive Django Users on Deletion?
How can users be archived in Django so they can be brought back when needed?
Method, through active or not active is_enabled - not correct.
So that approximately when the User.restore(iin: str = 'testiin') function is called, the record is restored.
Answer the question
In order to leave comments, you need to log in
don’t delete it, but put a mark on deletion, well, override the delete method and manager for the model for this
Soft Delete https://adriennedomingus.com/blog/soft-deletion-in...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question