mirror of
https://github.com/pretix/pretix.git
synced 2026-05-17 17:14:04 +00:00
Describe triggered_by parameter ot enqueue_order
This commit is contained in:
@@ -117,6 +117,10 @@ class OutboundSyncProvider:
|
|||||||
@receiver(order_placed, dispatch_uid="mysync_order_placed")
|
@receiver(order_placed, dispatch_uid="mysync_order_placed")
|
||||||
def on_order_placed(sender, order, **kwargs):
|
def on_order_placed(sender, order, **kwargs):
|
||||||
MySyncProvider.enqueue_order(order, "order_placed")
|
MySyncProvider.enqueue_order(order, "order_placed")
|
||||||
|
|
||||||
|
:param order: the Order that should be synced
|
||||||
|
:param triggered_by: the reason why the order should be synced, e.g. name of the signal
|
||||||
|
(currently only used internally for logging)
|
||||||
"""
|
"""
|
||||||
if not hasattr(cls, 'identifier'):
|
if not hasattr(cls, 'identifier'):
|
||||||
raise TypeError('Call this method on a derived class that defines an "identifier" attribute.')
|
raise TypeError('Call this method on a derived class that defines an "identifier" attribute.')
|
||||||
|
|||||||
Reference in New Issue
Block a user