mirror of
https://github.com/pretix/pretix.git
synced 2026-05-09 15:54:03 +00:00
Expose product mapping in event_copy_data signal
This commit is contained in:
@@ -431,7 +431,10 @@ class Event(EventMixin, LoggedModel):
|
|||||||
else:
|
else:
|
||||||
s.save()
|
s.save()
|
||||||
|
|
||||||
event_copy_data.send(sender=self, other=other)
|
event_copy_data.send(
|
||||||
|
sender=self, other=other,
|
||||||
|
tax_map=tax_map, category_map=category_map, item_map=item_map, variation_map=variation_map,
|
||||||
|
)
|
||||||
|
|
||||||
def get_payment_providers(self) -> dict:
|
def get_payment_providers(self) -> dict:
|
||||||
"""
|
"""
|
||||||
|
|||||||
@@ -223,7 +223,10 @@ You don't need to copy data inside the general settings storage which is cloned
|
|||||||
but you might need to modify that data.
|
but you might need to modify that data.
|
||||||
|
|
||||||
The ``sender`` keyword argument will contain the event of the **new** event. The ``other``
|
The ``sender`` keyword argument will contain the event of the **new** event. The ``other``
|
||||||
keyword argument will contain the event to **copy from**.
|
keyword argument will contain the event to **copy from**. The keyword arguments
|
||||||
|
``tax_map``, ``category_map``, ``item_map``, and ``variation_map`` contain mappings
|
||||||
|
from object IDs in the original event to objects in the new event of the respective
|
||||||
|
types.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
periodic_task = django.dispatch.Signal()
|
periodic_task = django.dispatch.Signal()
|
||||||
|
|||||||
Reference in New Issue
Block a user