Make themes not required for dreams

This commit is contained in:
Kumi 2021-01-04 07:38:42 +01:00
parent af5e247680
commit 1619f6895f

View file

@ -6,7 +6,7 @@ from .models import Dream, Theme
class DreamForm(ModelForm): class DreamForm(ModelForm):
uploads = MultiFileField(required=False) uploads = MultiFileField(required=False)
themes = ModelMultipleChoiceField(queryset=Theme.objects.all()) themes = ModelMultipleChoiceField(queryset=Theme.objects.all(), required=False)
class Meta: class Meta:
model = Dream model = Dream