mirror of
https://github.com/pretix/pretix.git
synced 2026-08-14 11:26:26 +00:00
WIP: i18n editor, start apple wallet generation
This commit is contained in:
@@ -49,7 +49,7 @@ class WalletLayoutSerializer(I18nAwareModelSerializer):
|
||||
style = platform_styles[data["style"]]
|
||||
|
||||
layout = PassLayout(style=style, layout=data["layout"])
|
||||
context = {"placeholders": {k: list(v.keys()) for k,v in get_layout_variables(self.context['event']).items()}}
|
||||
context = {"placeholders": {k: {"content": v['content']} for k,v in get_layout_variables(self.context['event']).items()}}
|
||||
layout.validate(context=context)
|
||||
return data
|
||||
|
||||
|
||||
Reference in New Issue
Block a user