A product aggregation function to a postgres database and makes it available with django
Project description
Summary
This django library adds signals for the bulk database actions provided by django (bulk_create
, bulk_update
and QuerySet.update
)
usage
Add app to settings
INSTALLED_APPS = [
...,
bulk_signals,
...
]
Import signals and connect.The signals are connected the same way as in Django itself. To see them in action use the following snippet:
from django.dispatch import receiver
from bulk_signals import signals
@receiver(signals.pre_bulk_update, signals.post_bulk_update, signals.post_query_update)
def debug(*args, **kwargs):
print(args)
print(kwargs)
You can skip the signals on a single execution by using the skip_signal=True
keyword argument.
Which keyword should be used for skipping is configurable via the BULK_SIGNALS_SKIP_KEY="skip_signal"
configuration in the django settings.
TODO
- test against different database backends
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for django-bulk-signals-0.4.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d2dacf43489989212ee5ef70636a3cd53be87c785a23445c27e10e704bc455c |
|
MD5 | c498bd20baee4d06f98a619fc8f3859a |
|
BLAKE2b-256 | ddd23b7f49f3a2521a732ce3767ee0ec966057a97d4a3921bdd0d37dd1623856 |
Close
Hashes for django_bulk_signals-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0858273c20fae398eb6c1b8db3311e72c93b4980921a2448edcbbb4c8f906e4 |
|
MD5 | c1f327246b0a9cd12452a6c03787f653 |
|
BLAKE2b-256 | 86a8200a1f95766ff1efdc91bc476766318ce03e5a5ebf2b62d0749be8f25338 |