Show More
@@ -126,7 +126,7 b' class PostForm(NeboardForm):' | |||
|
126 | 126 | return title |
|
127 | 127 | |
|
128 | 128 | def clean_text(self): |
|
129 | text = self.cleaned_data['text'] | |
|
129 | text = self.cleaned_data['text'].strip() | |
|
130 | 130 | if text: |
|
131 | 131 | if len(text) > board_settings.MAX_TEXT_LENGTH: |
|
132 | 132 | raise forms.ValidationError(_('Text must have less than %s ' |
@@ -217,7 +217,7 b' class ThreadForm(PostForm):' | |||
|
217 | 217 | max_length=100, label=_('Tags')) |
|
218 | 218 | |
|
219 | 219 | def clean_tags(self): |
|
220 | tags = self.cleaned_data['tags'] | |
|
220 | tags = self.cleaned_data['tags'].strip() | |
|
221 | 221 | |
|
222 | 222 | if tags: |
|
223 | 223 | if not self.regex_tags.match(tags): |
General Comments 0
You need to be logged in to leave comments.
Login now