﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
16896	ComentDetailsForm.clean_comment calls lower() in each iteration	gasull@…	nobody	"I would change [https://code.djangoproject.com/browser/django/trunk/django/contrib/comments/forms.py#L174 this line] from
{{{
bad_words = [w for w in settings.PROFANITIES_LIST if w in comment.lower()]
}}}

to

{{{
lowercased_comment = comment.lower()
bad_words = [w for w in settings.PROFANITIES_LIST if w in lowercased_comment]
}}}
.

This way {{{lower()}}} won't need to be run on each iteration."	Cleanup/optimization	closed	contrib.comments	1.3	Normal	needsinfo			Accepted	0	0	0	0	0	0
