Call plugin's installed() method upon event creation (#2089)

Co-authored-by: Raphael Michel <mail@raphaelmichel.de>
This commit is contained in:
Maico Timmerman
2021-05-27 10:27:18 +02:00
committed by GitHub
parent ffc41605f9
commit ab30129fc2
3 changed files with 7 additions and 2 deletions

View File

@@ -251,7 +251,7 @@ class EventWizard(SafeSessionWizardView):
with transaction.atomic(), language(basics_data['locale']):
event = form_dict['basics'].instance
event.organizer = foundation_data['organizer']
event.plugins = settings.PRETIX_PLUGINS_DEFAULT
event.set_active_plugins(settings.PRETIX_PLUGINS_DEFAULT.split(","), allow_restricted=True)
event.has_subevents = foundation_data['has_subevents']
event.testmode = True
form_dict['basics'].save()