Skip to content

Commit

Permalink
Fix error submitting article caused by extra HTML attribute.
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan-osman committed Sep 13, 2016
1 parent 98accf3 commit 0a718cc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions twobuntu/articles/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ class EditorForm(forms.ModelForm):
Form for entering or editing articles.
"""

# The <textarea> needs this set so that the form can validate on the client
# side without any content (due to ACE editor)
use_required_attribute = False

class Meta:
model = Article
fields = ('category', 'title', 'body')
Expand Down

0 comments on commit 0a718cc

Please sign in to comment.