mirror of
https://github.com/pretix/pretix.git
synced 2026-05-06 15:24:02 +00:00
Add "bulk" argument to order_placed signal (#5505)
* datasync: add immediate parameter to enqueue_order * interactive argument for order_placed signal The ``interactive`` argument specifies whether the order was placed interactively, by a customer (as opposed to via a bulk import or the REST API). * use bulk=True instead of interactive=False to mark bulk imports
This commit is contained in:
@@ -221,7 +221,7 @@ def import_orders(event: Event, fileid: str, settings: dict, locale: str, user,
|
||||
|
||||
for o in orders:
|
||||
with language(o.locale, event.settings.region):
|
||||
order_placed.send(event, order=o)
|
||||
order_placed.send(event, order=o, bulk=True)
|
||||
if o.status == Order.STATUS_PAID:
|
||||
order_paid.send(event, order=o)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user