Make themes not required for dreams

This commit is contained in:
Kumi 2021-01-04 07:38:42 +01:00
parent c7c1df13bb
commit 84b93b20b3

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