Skip to content

Commit

Permalink
Merge pull request #126 from praekelt/feature/OPENHELPD-128-faq-chara…
Browse files Browse the repository at this point in the history
…cter-limits

OPENHELPD-128 - FAQ character limits
  • Loading branch information
jpaidoussi authored Sep 8, 2016
2 parents 8b8262f + 2862f35 commit 9d90882
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions casepro/msgs/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ class Meta:

class FaqForm(forms.ModelForm):

question = forms.CharField(label=_("Question"), max_length=140)
answer = forms.CharField(label=_("Answer"), max_length=140)
question = forms.CharField(label=_("Question"), max_length=255, widget=forms.Textarea)
answer = forms.CharField(label=_("Answer"), max_length=480, widget=forms.Textarea)
language = forms.CharField(label=_("Language"), max_length=3)
# limit the parent choices to FAQs that have a ForeignKey parent that is None
parent = forms.ModelChoiceField(queryset=FAQ.objects.filter(parent=None), required=False)
Expand Down

0 comments on commit 9d90882

Please sign in to comment.