Re: hasNoProfanities doesn't work

2008-05-18 Thread Dan Kelley
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

Re: hasNoProfanities doesn't work

2008-05-18 Thread Karen Tracey
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

hasNoProfanities doesn't work

2008-05-17 Thread Dan Kelley
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