From 1619f6895f220e75dc9a073063726567274986ca Mon Sep 17 00:00:00 2001 From: Klaus-Uwe Mitterer Date: Mon, 4 Jan 2021 07:38:42 +0100 Subject: [PATCH] Make themes not required for dreams --- dreams/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dreams/forms.py b/dreams/forms.py index 86ad0e4..89c93dd 100644 --- a/dreams/forms.py +++ b/dreams/forms.py @@ -6,7 +6,7 @@ from .models import Dream, Theme class DreamForm(ModelForm): uploads = MultiFileField(required=False) - themes = ModelMultipleChoiceField(queryset=Theme.objects.all()) + themes = ModelMultipleChoiceField(queryset=Theme.objects.all(), required=False) class Meta: model = Dream