{% load slm %} {% with id=widget.attrs.id %}{% with per_col=widget.optgroups|length|div:widget.columns %}