mirror of
https://github.com/pretix/pretix.git
synced 2026-05-06 15:24:02 +00:00
Upgrade to hierarkey 2.0 (#5373)
* Upgrade to hierarkey 2.0 * Fix duplicate setting of timezone * Rebase migration
This commit is contained in:
@@ -1085,7 +1085,7 @@ class Event(EventMixin, LoggedModel):
|
||||
s.save(force_insert=True)
|
||||
|
||||
valid_sales_channel_identifers = set(self.organizer.sales_channels.values_list("identifier", flat=True))
|
||||
skip_settings = (
|
||||
skip_settings = {
|
||||
'ticket_secrets_pretix_sig1_pubkey',
|
||||
'ticket_secrets_pretix_sig1_privkey',
|
||||
# no longer used, but we still don't need to copy them
|
||||
@@ -1093,7 +1093,10 @@ class Event(EventMixin, LoggedModel):
|
||||
'presale_css_checksum',
|
||||
'presale_widget_css_file',
|
||||
'presale_widget_css_checksum',
|
||||
)
|
||||
} | {
|
||||
# Some settings might already exist due to e.g. the timezone being special in the API
|
||||
s.key for s in self.settings._objects.all()
|
||||
}
|
||||
settings_to_save = []
|
||||
for s in other.settings._objects.all():
|
||||
if s.key in skip_settings:
|
||||
|
||||
Reference in New Issue
Block a user