Fixes PersonalisableBlock segment validation
This commit is contained in:
@@ -37,7 +37,7 @@ class PersonalisedStructBlock(blocks.StructBlock):
|
|||||||
|
|
||||||
if value['segment']:
|
if value['segment']:
|
||||||
for segment in user_segments:
|
for segment in user_segments:
|
||||||
if segment['id'] == int(value['segment']):
|
if segment.id == int(value['segment']):
|
||||||
return super(PersonalisedStructBlock, self).render(
|
return super(PersonalisedStructBlock, self).render(
|
||||||
value, context)
|
value, context)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user