#2678 closed defect (fixed)
[patch] Move the list of profanities for the hasNoProfanities validator to the settings file
Reported by: | mcroydon | Owned by: | Adrian Holovaty |
---|---|---|---|
Component: | Validators | Version: | dev |
Severity: | normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Here is a patch against trunk (3738) that moves the list of profanities to be used in the hasNoProfanities
validator and the comments framework. If PROFANITIES_LIST
is not found in the settings file it will fall back on the defaults that ship with django. The patch includes an addition to the settings documentation.
Attachments (1)
Change History (5)
by , 18 years ago
Attachment: | profanities.patch added |
---|
comment:1 by , 18 years ago
Summary: | Move the list of profanities for the hasNoProfanities validator to the settings file → [patch] Move the list of profanities for the hasNoProfanities validator to the settings file |
---|
comment:2 by , 18 years ago
Good idea. This patch looks fine, with one exception: PROFANITIES_LIST
should be defined in global_settings.py, rather than having the comment code call if hasattr(settings, "PROFANITIES_LIST")
. I'll take care of this and check it in.
comment:4 by , 18 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Patch to move profanities list to settings file