mirror of
https://github.com/pretix/pretix.git
synced 2026-08-29 13:44:40 +00:00
Call plugin's installed() method upon event creation (#2089)
Co-authored-by: Raphael Michel <mail@raphaelmichel.de>
This commit is contained in:
co-authored by
Raphael Michel
parent
ffc41605f9
commit
ab30129fc2
@@ -637,6 +637,11 @@ class Event(EventMixin, LoggedModel):
|
||||
Quota,
|
||||
)
|
||||
|
||||
# Note: avoid self.set_active_plugins(), it causes trouble e.g. for the badges plugin.
|
||||
# Plugins can create data in installed() hook based on existing data of the event.
|
||||
# Calling set_active_plugins() results in defaults being created while actually data
|
||||
# should come from the copied event. Instead plugins should use event_copy_data to move
|
||||
# over their data.
|
||||
self.plugins = other.plugins
|
||||
self.is_public = other.is_public
|
||||
if other.date_admission:
|
||||
|
||||
Reference in New Issue
Block a user