{% load i18n %} {% with widget_value=widget.value|stringformat:'s' %} {% spaceless %} {% trans "Fixed" %} {% trans "Variable" %} {% endspaceless %} {% endwith %}