def render(self, *args, **kwargs):
        """Render widget and register it in Django's cache."""
        output = super(HeavySelect2Mixin, self).render(*args, **kwargs)
        self.set_to_cache()
        return output
def render ( self , * args , ** kwargs ) : output = super ( HeavySelect2Mixin , self ) . render ( * args , ** kwargs ) self . set_to_cache ( ) return output
Render widget and register it in Django's cache.