[Answer]-Django forms result in an poorly idented form

1👍

as_table outputs <tr>/<th>/<td> tags only. You should wrap it with <table> tag:

<form action="/books/add/" method="post">
  {% csrf_token %}
  <table>
    {{ add_view_form.as_table }}
  </table>
  <input type="submit" value="Submit" />
</form>

I tested it in the app from your bitbucket repository. It looks like this:

enter image description here

Leave a comment