From 3804385620a6997e7759edb36e8813248e41ebec Mon Sep 17 00:00:00 2001 From: rsp2k Date: Tue, 2 May 2023 01:34:40 -0600 Subject: [PATCH] Add hints for policies (#232) --- README.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.rst b/README.rst index 529c24e..e9fe154 100644 --- a/README.rst +++ b/README.rst @@ -17,11 +17,11 @@ This Django application provides an abstract model, that allows you to transpare without having them deleted from your database. You can choose what happens when you delete an object : - - it can be masked from your database (soft delete, the default behavior) - - it can be masked from your database and mask any dependent models. (cascading soft delete) - - it can be normally deleted (hard delete) - - it can be hard-deleted, but if its deletion would delete other objects, it will only be masked - - it can be never deleted or masked from your database (no delete, use with caution) + - it can be masked from your database (SOFT_DELETE, the default behavior) + - it can be masked from your database and mask any dependent models. (SOFT_DELETE_CASCADE) + - it can be normally deleted (HARD_DELETE) + - it can be hard-deleted, but if its deletion would delete other objects, it will only be masked (HARD_DELETE_NOCASCADE) + - it can be never deleted or masked from your database (NO_DELETE, use with caution) Example