#22255: RegexValidator needs support for flags passed to `re.compile` (migrations do not allow for compiled patterns) --------------------------------------+------------------------------------ Reporter: blueyed | Owner: nobody Type: Cleanup/optimization | Status: new Component: Core (Other) | Version: master Severity: Normal | Resolution: Keywords: | Triage Stage: Accepted Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 1 | UI/UX: 0 --------------------------------------+------------------------------------ Changes (by erikr):
* type: Bug => Cleanup/optimization * easy: 0 => 1 * stage: Unreviewed => Accepted Comment: So, with the latest comment, are you suggesting you no longer think patching this is useful? Patching this makes sense to me: it can make code that uses RegexValidator a lot clearer when flags are passed separately, and the change required in Django is trivial. For clarity: #21275 explains that the serialisation of validators is an intentional feature. -- Ticket URL: <https://code.djangoproject.com/ticket/22255#comment:2> Django <https://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 unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/065.38527dfc196078fc66791b54e213a7bb%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.