{% csrf_token %} {{ form.non_field_errors }} {% for field in form %}{% if field.name == 'color_rgb' %} {% if field.errors %}{{field.errors}}{% endif %} {% else %} {{field.label_tag}} {{field}} {% if field.errors %}{{field.errors}}{% endif %} {% endif %} {% endfor %} {{object.name}} Edit Create a new notebook {% csrf_token %} {{ form.non_field_errors }} {% for field in form %} {{field.label_tag}} {{field}} {% if field.errors %}{{field.errors}}{% endif %} {% endfor %} {% for object in object.note_set.all %} {% include "notes/partials/note_list.html" with object=object hidecolor=True hidenotebook=True %} {% endfor %}