From b2b22762efc4a77e716abf116993d36e84f6fb00 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Mon, 28 Sep 2020 22:01:45 +1000 Subject: [PATCH] style fixes --- InvenTree/stock/forms.py | 1 + InvenTree/stock/models.py | 2 +- InvenTree/stock/views.py | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/InvenTree/stock/forms.py b/InvenTree/stock/forms.py index 04701c8eb6..a5c689a605 100644 --- a/InvenTree/stock/forms.py +++ b/InvenTree/stock/forms.py @@ -292,6 +292,7 @@ class UninstallStockForm(forms.ModelForm): 'confirm', ] + class AdjustStockForm(forms.ModelForm): """ Form for performing simple stock adjustments. diff --git a/InvenTree/stock/models.py b/InvenTree/stock/models.py index b1e9f95e7e..df1a628f47 100644 --- a/InvenTree/stock/models.py +++ b/InvenTree/stock/models.py @@ -625,7 +625,7 @@ class StockItem(MPTTModel): self.addTransactionNote( _('Installed in stock item') + ' ' + str(otherItem.pk), user, - notes=notes + notes=notes ) @transaction.atomic diff --git a/InvenTree/stock/views.py b/InvenTree/stock/views.py index 7e62eda936..5041fad9d4 100644 --- a/InvenTree/stock/views.py +++ b/InvenTree/stock/views.py @@ -765,7 +765,7 @@ class StockItemUninstall(AjaxView, FormMixin): stock_item = StockItem.objects.get(pk=pk) items.append(stock_item) except (ValueError, StockItem.DoesNotExist): - pass + pass self.stock_items = items