2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-20 05:46:34 +00:00

Can now successfully edit or delete a purchase-order attachment

This commit is contained in:
Oliver Walters
2020-03-22 19:55:46 +11:00
parent 5af2fae120
commit 4a259dc146
6 changed files with 55 additions and 7 deletions

View File

@ -1,7 +1,7 @@
{% extends "modal_delete_form.html" %}
{% load i18n %}
{% block pre_form_content %}
Are you sure you wish to delete this attachment?
{% trans "Are you sure you want to delete this attachment?" %}
<br>
This will remove the file '{{ attachment.basename }}'.
{% endblock %}

View File

@ -112,6 +112,7 @@ class PartAttachmentCreate(AjaxCreateView):
class PartAttachmentEdit(AjaxUpdateView):
""" View for editing a PartAttachment object """
model = PartAttachment
form_class = part_forms.EditPartAttachmentForm
ajax_template_name = 'modal_form.html'