From 95b0ff493313bade7e1d0237dbbad6f0de575478 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20H=C3=BCttel?= Date: Mon, 8 Nov 2021 23:16:02 +0100 Subject: [PATCH] Fix error in AddStockForm --- shimatta_kenkyusho/parts/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shimatta_kenkyusho/parts/forms.py b/shimatta_kenkyusho/parts/forms.py index 5be0176..cdc264a 100644 --- a/shimatta_kenkyusho/parts/forms.py +++ b/shimatta_kenkyusho/parts/forms.py @@ -99,7 +99,7 @@ class AddStockForm(forms.Form): amount = self.cleaned_data.get('amount') watermark = -1 - if self.cleaned_data.get('watermark-active'): + if self.cleaned_data.get('watermark_active'): watermark = self.cleaned_data.get('watermark') new_stock = parts_models.Stock.objects.create(storage=storage, component=component, watermark=watermark, amount=amount)