mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Properly save user data when creating a new StockItem
This commit is contained in:
parent
890ce9ef95
commit
1316e6bf5b
@ -1721,7 +1721,7 @@ class StockItemCreate(AjaxCreateView):
|
||||
|
||||
item = form.save(commit=False)
|
||||
item.user = self.request.user
|
||||
item.save()
|
||||
item.save(user=self.request.user)
|
||||
|
||||
return item
|
||||
|
||||
@ -1732,7 +1732,7 @@ class StockItemCreate(AjaxCreateView):
|
||||
|
||||
item = form.save(commit=False)
|
||||
item.user = self.request.user
|
||||
item.save()
|
||||
item.save(user=self.request.user)
|
||||
|
||||
return item
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user