Skip to main content

django bulk_delete() function

Project description

Installation

$ pip install django-bulk_delete

Features

  • multiple models aggregator

Examples

from django_bulk_delete import bulk_delete
from apps.app.models import Model1, Model2

delete_list = []
for obj in Model1.objects.all():
	if delete_condition:
		delete_list+=[obj]
for obj in Model2.objects.all():
	if delete_condition:
		delete_list+=[obj]

bulk_delete(delete_list)

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-bulk_delete-1.0.1.tar.gz (1.3 kB view details)

Uploaded Source

File details

Details for the file django-bulk_delete-1.0.1.tar.gz.

File metadata

  • Download URL: django-bulk_delete-1.0.1.tar.gz
  • Upload date:
  • Size: 1.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for django-bulk_delete-1.0.1.tar.gz
Algorithm Hash digest
SHA256 e801f6543ef036e4c6c01caf91cd358386b9c6ad963ea26b2c0a66005bad9069
MD5 b1eeab7c3f3f830089b7ae958eea2618
BLAKE2b-256 58f01d3ca0ae8a2576586398d0a96c004bac3f384cc023e3ea063807927f8708

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