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:
@ -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 %}
|
@ -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'
|
||||
|
Reference in New Issue
Block a user