def render(self, form, form_style, context, template_pack=TEMPLATE_PACK, extra_context=None, **kwargs):
        # We first render the buttons
        field_template = self.field_template + template_pack
        buttons = ''.join(
            render_field(
                field, form, form_style, context,
                field_template, layout_object=self,
                template_pack=template_pack, **kwargs
            ) for field in self.fields[1:]
        )

        extra_context = {'div': self, 'buttons': buttons}
        template = self.get_template_name(template_pack)

        if isinstance(self.fields[0], Field):
            # FieldWithButtons(Field('field_name'), StrictButton("go"))
            # We render the field passing its name and attributes
            return render_field(
                self.fields[0][0], form, form_style, context,
                template, attrs=self.fields[0].attrs,
                template_pack=template_pack, extra_context=extra_context, **kwargs
            )
        else:
            return render_field(
                self.fields[0], form, form_style, context, template,
                extra_context=extra_context, **kwargs
            )
dataset/ETHPy150Open maraujop/django-crispy-forms/crispy_forms/bootstrap.py/FieldWithButtons.render/operator `%` -> `+`