diff options
Diffstat (limited to 'django/contrib/comments/forms.py')
| -rw-r--r-- | django/contrib/comments/forms.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/django/contrib/comments/forms.py b/django/contrib/comments/forms.py index 4e7870501e..adb2741873 100644 --- a/django/contrib/comments/forms.py +++ b/django/contrib/comments/forms.py @@ -117,9 +117,6 @@ class CommentForm(forms.Form): """ comment = self.cleaned_data["comment"] if settings.COMMENTS_ALLOW_PROFANITIES == False: - # Logic adapted from django.core.validators; it's not clear if they - # should be used in newforms or will be deprecated along with the - # rest of oldforms bad_words = [w for w in settings.PROFANITIES_LIST if w in comment.lower()] if bad_words: plural = len(bad_words) > 1 |
