Expose product mapping in event_copy_data signal

This commit is contained in:
Raphael Michel
2017-11-22 11:59:03 +01:00
parent a08cb3b8e4
commit b0c4c62668
2 changed files with 8 additions and 2 deletions

View File

@@ -431,7 +431,10 @@ class Event(EventMixin, LoggedModel):
else:
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:
"""

View File

@@ -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.
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()