{%- for field in fields %} {{ object }}.{{ field.name }} = {{ field.name }}; {%- endfor -%}