﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
22943	Some validators defined in django.core.validators can't be serialized	antialiasis@…	nobody	"In `django.core.validators`, `validate_slug` and `validate_ipv4_address` are defined as `RegexValidator` instances constructed with precompiled regexes. Since the migrations framework can't serialize compiled regexes (as explained only in the release notes for 1.7; shouldn't this also be documented in the validators reference?), it is impossible to use these validators on model fields in a migrated app - the migration will fail with `ValueError: Cannot serialize: <_sre.SRE_Pattern object at 0x0274AAD0>`. Presumably Django's own built-in validators should work with migrations out of the box.

I would assume all that needs to be done here is pass the regex arguments as strings instead of compiled regexes to the `RegexValidator` constructor where these validators are defined."	Bug	closed	Core (Other)	1.7-rc-1	Release blocker	fixed	validators, migrations	Simon Charette	Accepted	1	0	0	1	1	0
