From 075748e737587b82823b230f3bc3cb110f7d831b Mon Sep 17 00:00:00 2001 From: Charles Connell Date: Sun, 11 May 2014 00:04:12 -0400 Subject: [PATCH] Keywords are not required to have a definition --- karmaworld/apps/quizzes/forms.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/karmaworld/apps/quizzes/forms.py b/karmaworld/apps/quizzes/forms.py index 0708b3b..47de948 100644 --- a/karmaworld/apps/quizzes/forms.py +++ b/karmaworld/apps/quizzes/forms.py @@ -5,7 +5,9 @@ from django.forms import TextInput, Textarea, HiddenInput, Form, CharField, Inte class KeywordForm(Form): - keyword = CharField(widget=TextInput(attrs={'placeholder': 'Keyword', 'class': 'keyword'})) - definition = CharField(widget=Textarea(attrs={'placeholder': 'Definition', 'class': 'definition'})) + keyword = CharField(widget=TextInput(attrs={'placeholder': 'Keyword', 'class': 'keyword'}), + required=True) + definition = CharField(widget=Textarea(attrs={'placeholder': 'Definition', 'class': 'definition'}), + required=False) id = IntegerField(widget=HiddenInput(attrs={'class': 'object-id'}), required=False) -- 2.25.1