django-safedelete

Concepts #

policy 定义了如何删除。

visibility/visibility_filed 删除之后是否可以见,以及如何可见。

manager #

Two fields are added:

  • deleted datetime with timezone default now
  • deleted_by_cascade boolean default false

Django-safedelete version <= 0.3.5 #

Only one field is added deleted boolean default false.

Django-safedelete version >= 0.4 #

Two fields:

  • deleted timestamp default null
  • deleted_by_cascade boolean default false