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

Usage

  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

Caution

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

0.1

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 details)

Uploaded Source

File details

Details for the file django-deletes-0.1.tar.gz.

File metadata

  • Download URL: django-deletes-0.1.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for django-deletes-0.1.tar.gz
Algorithm Hash digest
SHA256 eeb73331a8d066c4bbb3d61e6587b4fb9ec4bfa1f1a33bfc11a52bd99e0211c6
MD5 bae396a2243592c70304d1e95af4616c
BLAKE2b-256 1fe703592464f7c1b7f4a094197fa3aaba323cc0c4dddceef696483fcbe4aece

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page