mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-20 15:05:12 +00:00
Use the part detail API for uploading a new image
This commit is contained in:
1 parent
b8e4b58df0
commit
f199feb8d9
3 files changed
+6
-3
No files matched your search
@@ -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();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user