mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
BuildAttachmentDelete form
This commit is contained in:
@ -1058,18 +1058,3 @@ class BuildItemEdit(AjaxUpdateView):
|
||||
form.fields['install_into'].widget = HiddenInput()
|
||||
|
||||
return form
|
||||
|
||||
|
||||
class BuildAttachmentDelete(AjaxDeleteView):
|
||||
"""
|
||||
View for deleting a BuildAttachment
|
||||
"""
|
||||
|
||||
model = BuildOrderAttachment
|
||||
ajax_form_title = _('Delete Attachment')
|
||||
context_object_name = 'attachment'
|
||||
|
||||
def get_data(self):
|
||||
return {
|
||||
'danger': _('Deleted attachment')
|
||||
}
|
||||
|
Reference in New Issue
Block a user