Commit ec358232dcdf7e539d975a506e6f1a0eb23cdd7e
1 parent
02d981ad
Exists in
master
and in
3 other branches
Adjusting webpage content input
Showing
2 changed files
with
3 additions
and
3 deletions
Show diff stats
webpage/forms.py
| ... | ... | @@ -65,9 +65,9 @@ class WebpageForm(forms.ModelForm): |
| 65 | 65 | |
| 66 | 66 | def clean_content(self): |
| 67 | 67 | content = self.cleaned_data.get('content', '') |
| 68 | - content = strip_tags(content) | |
| 68 | + cleaned_content = strip_tags(content) | |
| 69 | 69 | |
| 70 | - if content == '': | |
| 70 | + if cleaned_content == '': | |
| 71 | 71 | self._errors['content'] = [_('This field is required.')] |
| 72 | 72 | |
| 73 | 73 | return ValueError | ... | ... |
webpage/templates/webpages/window_view.html