def get_context(self, name, value, attrs):
        """Return widget context dictionary."""
        context = super().get_context(
            name, value, attrs)
        context['widget']['attrs']['dp_config'] = json_dumps(self.config)
        return context
def get_context ( self , name , value , attrs ) : context = super ( ) . get_context ( name , value , attrs ) context [ 'widget' ] [ 'attrs' ] [ 'dp_config' ] = json_dumps ( self . config ) return context
Return widget context dictionary.