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)