Wrote autocompletion for foreign key field

This commit is contained in:
2022-01-01 17:18:08 +01:00
parent 563a769064
commit f21ce223bc
8 changed files with 133 additions and 69 deletions

View File

@@ -119,11 +119,6 @@
</div>
</div>
</div>
<form action="" method="post" enctype="multipart/form-data">
{% csrf_token %}
{{comp_form|crispy}}
<input type="submit" name="submit-edit-component" value="Submit">
</form>
</div>
{% if component.get_resolved_image %}
@@ -149,7 +144,7 @@
</div>
</div>
{% endif %}
{% include 'parts/modals/edit-component-modal.html' with heading="Edit "|add:component.name form=edit_form %}
{% include 'parts/modals/edit-component-modal.html' with heading="Edit "|add:component.name form=comp_form %}
{% endblock content %}
{% block custom_scripts %}