Properly save user data when creating a new StockItem

This commit is contained in:
Oliver Walters 2021-01-14 11:24:52 +11:00
parent 890ce9ef95
commit 1316e6bf5b

View File

@ -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