BuildAttachmentDelete form

This commit is contained in:
Oliver
2021-06-30 12:48:14 +10:00
parent 653e3cd135
commit 4d8e88c779
4 changed files with 23 additions and 21 deletions

View File

@ -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')
}