From fb5521981f1f5db11b48a61428aaf5bf26f2d41e Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Sun, 24 Jan 2021 13:49:56 +0100 Subject: Container: fix collection field (not mandatory) --- archaeological_warehouse/forms.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'archaeological_warehouse/forms.py') diff --git a/archaeological_warehouse/forms.py b/archaeological_warehouse/forms.py index 050a62e7d..b5a9b4391 100644 --- a/archaeological_warehouse/forms.py +++ b/archaeological_warehouse/forms.py @@ -293,7 +293,8 @@ class ContainerForm(CustomForm, ManageOldType, forms.Form): associated_model=models.Warehouse, new=True), validators=[valid_id(models.Warehouse)], help_text=_("Automatically attached to the current warehouse if not " - "filled.") + "filled."), + required=False ) comment = forms.CharField(label=_("Comment"), widget=forms.Textarea, required=False) -- cgit v1.2.3