8

Fixes PersonalisableBlock segment validation

This commit is contained in:
Jasper Berghoef
2017-06-02 12:58:09 +02:00
parent 702fa233a9
commit 0e24ae17ac

View File

@@ -37,7 +37,7 @@ class PersonalisedStructBlock(blocks.StructBlock):
if value['segment']:
for segment in user_segments:
if segment['id'] == int(value['segment']):
if segment.id == int(value['segment']):
return super(PersonalisedStructBlock, self).render(
value, context)