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 hashes)

Uploaded Source

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