Skip to main content

django softdeletion

Project description

django softdeletion

基于 django 的软删除插件

主要功能

  • 支持软删除
  • 支持级联软删除
  • 软删除的数据不在 django admin 中显示

安装

pip install django-softdeletion

使用方法

from django.db import models
from django_softdeletion import SoftDeletionModelMixin


class CustomModel(SoftDeletionModelMixin, models.Model):
    ...

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_softdeletion-0.1.1.tar.gz (3.1 kB view details)

Uploaded Source

File details

Details for the file django_softdeletion-0.1.1.tar.gz.

File metadata

  • Download URL: django_softdeletion-0.1.1.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.64.0 importlib-metadata/4.8.3 keyring/21.8.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.6.7

File hashes

Hashes for django_softdeletion-0.1.1.tar.gz
Algorithm Hash digest
SHA256 4d4dc7df1dace716a02a7970cf741aeeddca89c8f6bc069ace3dc941b27943b6
MD5 5b9c42c2fac0457f90d0d870c318f0fe
BLAKE2b-256 714cfec4b6493126ff95e8d72d9df09ba46d416788b1951719b289a5c3aaf06b

See more details on using hashes here.

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