Hi,
I've two queries related to validators, would appreciate if someone could reply.
(1) As part of my application, I'm planning to add new validators. Is there any documentation on best practices of doing the same? I've been looking into https://docs.djangoproject.com/en/1.7/_modules/django/core/validators/ to get some ideas though.
(2) If I were to allow users to attach validators to a field and define their parameters, what would be the best way? For instance, let's say the user would like to apply a RegexValidator on a CharField() where the 'regex' parameter is defined by the user. How would I achieve that behaviour?
Thanks!