<form> {% for field in form %} <label class="my_class" for="{{ field.auto_id }}">{{ field.label }}</label> {{ field }} {% endfor %} <button type="submit">Submit</button> </form>