mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-28 02:28:43 +00:00
Fixed bugs in Inventree/views.py
- Need to pass request.FILES to the form! (duh!) - Prevent form data from being saved twice
This commit is contained in:
1 parent
68cf6919a7
commit
bc716e25f7
4 files changed
+15
-6
No files matched your search
@@ -96,6 +96,11 @@ class PartImage(AjaxUpdateView):
|
||||
ajax_form_title = 'Upload Part Image'
|
||||
form_class = PartImageForm
|
||||
|
||||
def get_data(self):
|
||||
return {
|
||||
'success': 'Updated part image',
|
||||
}
|
||||
|
||||
|
||||
class PartEdit(AjaxUpdateView):
|
||||
model = Part
|
||||
|
||||
Reference in new issue
Block a user