{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/18"}],"enrichment":{"capability":"Adds soft deletion to Django models by marking records as deleted rather than removing them from the database, with automatic `is_deleted` and `deleted_at` fields plus managers to query alive, deleted, or all objects.","skillfed_tags":["django-extension","data-recovery","audit-trail"],"use_cases":["Implement audit trails where deleted records remain queryable for compliance or recovery purposes.","Build admin interfaces that allow users to restore accidentally deleted content without database recovery.","Maintain referential integrity in related models by soft-deleting parents and children together while preserving the data.","Filter out inactive or archived records from default queries while keeping them available for reporting or historical analysis.","Support multi-tenant applications where soft deletion prevents accidental data loss across shared infrastructure."],"what_it_does":"Django Soft Delete provides an abstract base model and manager classes that implement logical deletion\u2014marking records as deleted without removing them from the database. When you inherit from the abstract model, your model automatically gains `is_deleted` and `deleted_at` fields, plus three managers: `objects` (shows only alive records), `deleted_objects` (shows only deleted records), and `global_objects` (shows all records). Calling `.delete()` on a soft-deleted model marks it as deleted; calling `.hard_delete()` removes it permanently. The package handles cascading soft deletes when related models also inherit from the same abstract model.\n\nThis is useful for audit trails, recovery workflows, and applications where data should be recoverable after deletion. It integrates with django's standard ORM and migration system, requiring only that you add the package to `INSTALLED_APPS` and run migrations. The library does not interfere with standard django relationships, though hard deletion of parent records will hard-delete children unless they are also soft-delete models.","worth_installing":"Yes. Django Soft Delete is actively maintained, has no known vulnerabilities, carries a permissive MIT license, and solves a common Django pattern with minimal friction. Install it if your application needs recoverable deletion, audit trails, or soft-delete cascading. Skip it only if you have no use for logical deletion or prefer to implement the pattern yourself."},"id":"django-soft-delete","links":{"html":"https://skillfed.io/packages/django-soft-delete","md":"https://skillfed.io/packages/django-soft-delete.md","pypi":"https://pypi.org/project/django-soft-delete/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-02-21","license_spdx":"MIT","license_treatment":"permissive","name":"django-soft-delete","python_support":"supports_current","summary":"Soft delete models, managers, queryset for Django"},"popularity":{"monthly_downloads":134999,"position":11456,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.0.23"}
