Skip to main content

this application is for handling delete operations in the system

Project description

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

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-generic-delete-1.1.tar.gz (5.1 kB view details)

Uploaded Source

File details

Details for the file django-generic-delete-1.1.tar.gz.

File metadata

  • Download URL: django-generic-delete-1.1.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for django-generic-delete-1.1.tar.gz
Algorithm Hash digest
SHA256 93a7dd7896fcdc1eb049d6f90581120ca7b039632bb805fcfd83a6cfa29620f1
MD5 075018ef5b9dd268d79969df38c1d8ca
BLAKE2b-256 ec9143d48608426f4743ad4ab582399d0f841ae347c6b43281c0d34b2b15f147

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