Add request argument to pretix.control.signals.order_info

This commit is contained in:
Raphael Michel
2017-09-27 18:19:47 +02:00
parent ae6cba067c
commit 06fe076ce2
2 changed files with 3 additions and 2 deletions

View File

@@ -183,12 +183,13 @@ the keyword arguments ``organizer`` and ``request``.
""" """
order_info = EventPluginSignal( order_info = EventPluginSignal(
providing_args=["order"] providing_args=["order", "request"]
) )
""" """
This signal is sent out to display additional information on the order detail page This signal is sent out to display additional information on the order detail page
As with all plugin signals, the ``sender`` keyword argument will contain the event. As with all plugin signals, the ``sender`` keyword argument will contain the event.
Additionally, the argument ``order`` and ``request`` are available.
""" """

View File

@@ -332,7 +332,7 @@
</div> </div>
</div> </div>
</div> </div>
{% eventsignal event "pretix.control.signals.order_info" order=order %} {% eventsignal event "pretix.control.signals.order_info" order=order request=request %}
<div class="row"> <div class="row">
<div class="{% if request.event.settings.invoice_address_asked %}col-md-6{% else %}col-md-12{% endif %}"> <div class="{% if request.event.settings.invoice_address_asked %}col-md-6{% else %}col-md-12{% endif %}">
<div class="panel panel-default items"> <div class="panel panel-default items">