From 00f87e30b7b36043eef82fe8a5c7837c5f706bb1 Mon Sep 17 00:00:00 2001 From: Christopher Neugebauer Date: Mon, 25 Apr 2016 16:16:22 +1000 Subject: [PATCH] =?UTF-8?q?Adds=20an=20upper=20limit=20on=20quantity=20box?= =?UTF-8?q?es=20(it=E2=80=99s=20set=20to=20500=20for=20the=20moment=20thou?= =?UTF-8?q?gh).?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes #19. --- registrasion/forms.py | 1 + 1 file changed, 1 insertion(+) diff --git a/registrasion/forms.py b/registrasion/forms.py index 1037d229..14fa3ec0 100644 --- a/registrasion/forms.py +++ b/registrasion/forms.py @@ -100,6 +100,7 @@ class _QuantityBoxProductsForm(_ProductsForm): label=product.name, help_text=help_text, min_value=0, + max_value=500, # Issue #19. We should figure out real limit. ) cls.base_fields[cls.field_name(product)] = field