Add signal item_description

This commit is contained in:
Raphael Michel
2019-11-26 16:36:25 +01:00
parent 436dcc68f2
commit 14575693b8
3 changed files with 21 additions and 1 deletions

View File

@@ -256,3 +256,12 @@ invoice address, confirmations) will be optional, except for questions. Use with
As with all plugin signals, the ``sender`` keyword argument will contain the event. A ``request``
argument will contain the request object.
"""
item_description = EventPluginSignal(
providing_args=["item", "variation"]
)
"""
This signal is sent out when the description of an item or variation is rendered and allows you to append
additional text to the description. You are passed the ``item`` and ``variation`` and expected to return
HTML.
"""