#13511: RegexValidator pattern is optional and should be required ---------------------------------------+------------------------------------ Reporter: davidfischer | Owner: nobody Status: new | Milestone: Component: Core framework | Version: SVN Keywords: validators,regexvalidator | Stage: Unreviewed Has_patch: 0 | ---------------------------------------+------------------------------------ While working on ticket #13341, I noticed that the code for RegexValidator could use a slight cleanup. Specifically, the first parameter of RegexValidator -- the regex pattern -- is optional. However, if it is not provided, a TypeError is thrown because the default value of `None` is passed to `re.compile`. The regex pattern should be required.
-- Ticket URL: <http://code.djangoproject.com/ticket/13511> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-upda...@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.