style fixes

This commit is contained in:
Oliver Walters 2020-09-28 22:01:45 +10:00
parent a18886f196
commit b2b22762ef
3 changed files with 3 additions and 2 deletions

View File

@ -292,6 +292,7 @@ class UninstallStockForm(forms.ModelForm):
'confirm',
]
class AdjustStockForm(forms.ModelForm):
""" Form for performing simple stock adjustments.

View File

@ -625,7 +625,7 @@ class StockItem(MPTTModel):
self.addTransactionNote(
_('Installed in stock item') + ' ' + str(otherItem.pk),
user,
notes=notes
notes=notes
)
@transaction.atomic

View File

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