Soft Delete
Installation
pip install django-softdelete
Configuration
INSTALLED_APPS = [
...,
'softdelete',
]
in urls
urlpatterns = [
....
path('delete/', include('softdelete.urls', namespace='softdelete'))
]
Usage
In models
- Extend
# import this
from softdelete.models import SoftDeletionModel
class YourModel(SoftDeletionModel):
# your fields
pass
Override templates
- in your
templates
add the following directory
templates/
softdelete/
delete.configuration.html
Metadata
Release files for django-generic-delete 1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-generic-delete-1.1.tar.gz | 5.1 kB | Details |
Release files / django-generic-delete-1.1.tar.gz
| Download URL | django-generic-delete-1.1.tar.gz |
|---|---|
| Size | 5.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
93a7dd7896fcdc1eb049d6f90581120ca7b039632bb805fcfd83a6cfa29620f1
|
|
BLAKE2b-256 checksum How to use checksums |
ec9143d48608426f4743ad4ab582399d0f841ae347c6b43281c0d34b2b15f147
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/18.0.1 rfc3986/2.0.0 colorama/0.4.3 CPython/3.8.10
|