Skip to main content

A fully functional soft deletes (logical deletes) for django.

Project description

Installation Instructions

  1. pip install django-deletes # Doesnt work yet, clone the repo.
  2. Add ‘softdeletes’ to INSTALLED_APPS in settings


  1. Use Deletable class on the left most in the inhertance chain of the model.
  2. Use objects = DeletableManager.from_queryset(DeletableQuerySet)()
  3. If you want to use a custom manager or a custom Queryset, make sure your custom manager inherits from DeletableManagerMixin and your custom QuerySet inherits from Deletable QuerySetMixin


All cascading delete models should be made deletable, otherwise cascading delete would do a real delete to the foreignkey related models.

Project details

Release history Release notifications | RSS feed

This version


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-deletes-0.1.tar.gz (4.5 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page