streamfield_tools/blocks/struct_block.py
def get_context(self, value):
        """Ensure `image_rendition` is added to the global context."""
        context = super(RenditionAwareStructBlock, self).get_context(value)
        context['image_rendition'] = self.rendition.\
            image_rendition or 'original'
        return context
def get_context(self, value):
        """Ensure `image_rendition` is added to the global context."""
        context = super(RenditionAwareStructBlock, self).get_context(value)
        context['image_rendition'] = self.rendition.\
            image_rendition or 'original'
        return context
def get_context ( self , value ) : context = super ( RenditionAwareStructBlock , self ) . get_context ( value ) context [ 'image_rendition' ] = self . rendition . image_rendition or 'original' return context
Ensure `image_rendition` is added to the global context.
Ensure image_rendition is added to the global context .