You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ProductCardValue is used by the ProductCardBlock as seen below:
class ProductCardBlock(blocks.StructBlock):
title_link = LinkBlock(help_text='The title of the product')
image_link = LinkBlock(required=False, help_text='The main image with a link')
body = blocks.RichTextBlock(required=False, features=RICH_TEXT_FEATURES)
product_id = blocks.ChoiceBlock(required=False, choices=PRODUCT_CHOICES, help_text='The product')
show_product_reviews = blocks.BooleanBlock(required=False, help_text='Do you want to show the product review stars?')
class Meta:
template = 'streams/product_card_block.html'
icon = 'placeholder'
label = 'Product Card'
value_class = ProductCardValue
Does this not work if you are using a value_class?
The text was updated successfully, but these errors were encountered:
Description
I used the
cache_block
template tag{% cache_block 300 request block %}
......and got the following error
The error happened on this line of code
for k, v in block_obj.value.bound_blocks.items():
which is in the middle of the below code...The
block_obj
is aProductCardValue
object which is this below:The ProductCardValue is used by the
ProductCardBlock
as seen below:Does this not work if you are using a
value_class
?The text was updated successfully, but these errors were encountered: