django-deletes 0.1

Creator: danarutscher

Last updated:

Add to Cart

Description:

djangodeletes 0.1

Installation Instructions

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



Usage

Use Deletable class on the left most in the inhertance chain of the
model.
Use objects = DeletableManager.from_queryset(DeletableQuerySet)()
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.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.