Read the docs: https://darknessrdg.github.io/django-paranoid-model/
django-paranoid-model
Django abstract model with paranoid behavior, therefore when an instance is deleted it is not really deleted from database, it's applied a mask on the filter so when filter, the result are the "undeleted" instances.
Sometimes you might want to keep all datas saved on your database and when user wants do delete, it is just hidden form user.
All documentation are in the mkdocs/docs directory and online at HERE !!. If you're new here, we recomend you to checkout the documentation first :wink: .
Quick start
Install Django Paranoid Model package from pip
pip install django-paranoid-model
Add paranoid_model to your installed apps so you can use django admin with a paranoid behavior
INSTALLED_APPS = [
...
'paranoid_model'
]
Good job ! You're now ready to use it.
Run tests
pip install -e .[test]
pytest
or run Tox to test on multiple Django versions
pip install tox
tox
Metadata
Release files for django-paranoid-model 1.0.7
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-paranoid-model-1.0.7.tar.gz | 12.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_paranoid_model-1.0.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 29.0 kB
Release files / django-paranoid-model-1.0.7.tar.gz
| Download URL | django-paranoid-model-1.0.7.tar.gz |
|---|---|
| Size | 12.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
869bd6cca773cbc18b22f1aa766614e270689fccb96b2dbf891327a640142128
|
|
BLAKE2b-256 checksum How to use checksums |
42f0f3860bf2f94dc3dc4c6dc0d489d32b5a8482e3fb64ac97dfa943a9177667
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.6
|
Release files / django_paranoid_model-1.0.7-py3-none-any.whl
| Download URL | django_paranoid_model-1.0.7-py3-none-any.whl |
|---|---|
| Size | 16.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
69d86a293afc9489172c71ee09373ee637f7a95130771fa052ea2e1975ac479e
|
|
BLAKE2b-256 checksum How to use checksums |
bf8cffc7b17bacdec8c410b0aeb1f5ac4abb50a2a892687bcbfb450928836fe8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.6
|