2
0
mirror of https://github.com/inventree/InvenTree.git synced 2026-07-09 08:31:24 +00:00

Use the part detail API for uploading a new image

This commit is contained in:
Oliver
2021-06-23 08:34:45 +10:00
parent b8e4b58df0
commit f199feb8d9
3 changed files with 6 additions and 3 deletions
+2 -1
View File
@@ -239,9 +239,10 @@
enableDragAndDrop(
'#part-thumb',
"{% url 'part-image-upload' part.id %}",
"{% url 'api-part-detail' part.id %}",
{
label: 'image',
method: 'PATCH',
success: function(data, status, xhr) {
location.reload();
}