Django abstract model with paranoid behavior.
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django-paranoid-model-1.0.7.tar.gz.
File metadata
- Download URL: django-paranoid-model-1.0.7.tar.gz
- Upload date:
- Size: 12.4 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
869bd6cca773cbc18b22f1aa766614e270689fccb96b2dbf891327a640142128
|
|
| MD5 |
2ce2ada067cc1c0ec0604112e0362729
|
|
| BLAKE2b-256 |
42f0f3860bf2f94dc3dc4c6dc0d489d32b5a8482e3fb64ac97dfa943a9177667
|
File details
Details for the file django_paranoid_model-1.0.7-py3-none-any.whl.
File metadata
- Download URL: django_paranoid_model-1.0.7-py3-none-any.whl
- Upload date:
- Size: 16.6 kB
- Tags: Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
69d86a293afc9489172c71ee09373ee637f7a95130771fa052ea2e1975ac479e
|
|
| MD5 |
1ef191efdcba5f617e77bf0d795e9aec
|
|
| BLAKE2b-256 |
bf8cffc7b17bacdec8c410b0aeb1f5ac4abb50a2a892687bcbfb450928836fe8
|