2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-05 13:10:57 +00:00

Add detail endpoint for StockItemAttachment

This commit is contained in:
Oliver
2021-06-30 09:40:54 +10:00
parent 87235b7e6f
commit 54c9bd25a5
4 changed files with 23 additions and 23 deletions

View File

@ -255,23 +255,6 @@ class StockLocationQRCode(QRCodeView):
return None
class StockItemAttachmentEdit(AjaxUpdateView):
"""
View for editing a StockItemAttachment object.
"""
model = StockItemAttachment
form_class = StockForms.EditStockItemAttachmentForm
ajax_form_title = _("Edit Stock Item Attachment")
def get_form(self):
form = super().get_form()
form.fields['stock_item'].widget = HiddenInput()
return form
class StockItemAttachmentDelete(AjaxDeleteView):
"""
View for deleting a StockItemAttachment object.