2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-08-26 05:15:55 +00:00

Replace PartImageUpload form

This commit is contained in:
Oliver
2021-06-30 00:18:25 +10:00
parent 293b5d4c07
commit 26eafe242c
4 changed files with 33 additions and 38 deletions

View File

@@ -1186,21 +1186,6 @@ class PartImageDownloadFromURL(AjaxUpdateView):
)
class PartImageUpload(AjaxUpdateView):
""" View for uploading a new Part image """
model = Part
ajax_template_name = 'modal_form.html'
ajax_form_title = _('Upload Part Image')
form_class = part_forms.PartImageForm
def get_data(self):
return {
'success': _('Updated part image'),
}
class PartImageSelect(AjaxUpdateView):
""" View for selecting Part image from existing images. """