{% load rest_framework %}

<form class="form-inline" role="form" action="." method="POST" novalidate>
  {% csrf_token %}

  {% for field in form %}
    {% if not field.read_only %}
      {% render_field field style=style %}
    {% endif %}
  {% endfor %}

    <button type="submit" class="btn btn-default">Submit</button>
</form>
