code: def render_layout(self, form, context):
          
          form.rendered_fields = []
          
          html = self.layout.render(form, self.form_style, context)
  
          for field in form.fields.keys():
              if not field in form.rendered_fields:
                  html += render_field(field, form, self.form_style, context)
  
          return mark_safe(html)
docs: Returns safe html of the rendering of the layout