Skip to main content

Django abstract model with paranoid behavior.

Project description

Build Status Codacy Badge Codacy Badge license

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-paranoid-model-1.0.2.tar.gz (11.2 kB view hashes)

Uploaded Source

Built Distribution

django_paranoid_model-1.0.2-py3-none-any.whl (16.9 kB view hashes)

Uploaded Python 3

Supported by

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