Thanks, Karen. You're right -- I was quite mixed up, with oldforms and
newforms. (I am still learning django, which means that I'm balanced always
between being perplexed and being simply delighted at the system.)
I have my code working now, and I've pasted a snippet below, in case someone
else
o I'm guessing you have your own newforms-based forms and
are finding that the validator_list isn't being used. Instead, I think you
need to call the hasNoProfanities validator from your own clean method.
Karen
> --
> View this message in context: hasNoProf
Hi. I'm using the latest development version (svn'd today).
I think I'm missing something on hasNoProfanities. I have the following in
my model:
from django.core import validators
...
content = models.TextField(validator_list=[validators.hasNoProfanities])
and in my settings.py file
3 matches
Mail list logo