On Jan 26, 2:29 pm, Tim Chase <[EMAIL PROTECTED]> wrote: > Django comes with a naughty-word filter/validator, > hasNoProfanities. Just set the PROFANITIES_LIST in your > settings.py to be the list of words you don't want to include. I > believe there's already a modest default list detailed in > conf/global_settings.py but you can enhance to include your own > favorites. > > Thus, you can use > > class MyModel(Model): > comment_field = TextField(..., > validator_list=[hasNoProfanities] > ) > > It might take some monkey-patching or a bit of hacking to get it > into the Django auth system, though it might not make a bad > default validator for the username. :) > > -tim
Thanks so much. My site actually doesn't make use of the admin at all, so I can easily hack together what I need. This is just the sort of thing I was looking for. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---