forked from CGM_Public/pretix_original
Badges: Fix event copy data receiver not rewriting questions
This commit is contained in:
@@ -102,6 +102,8 @@ def event_copy_data_receiver(sender, other, question_map, item_map, **kwargs):
|
|||||||
newq = question_map.get(int(o['content'][9:]))
|
newq = question_map.get(int(o['content'][9:]))
|
||||||
if newq:
|
if newq:
|
||||||
o['content'] = 'question_{}'.format(newq.pk)
|
o['content'] = 'question_{}'.format(newq.pk)
|
||||||
|
|
||||||
|
bl.layout = json.dumps(layout)
|
||||||
bl.save()
|
bl.save()
|
||||||
|
|
||||||
if bl.background and bl.background.name:
|
if bl.background and bl.background.name:
|
||||||
|
|||||||
Reference in New Issue
Block a user