﻿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
33487	Adding `validate_slug` to a model's validators causes flapping migrations between 2.x and 3.x	Benjamin Cutler	nobody	"I have a project that currently supports both 2.2 and 3.2 (working on 4.0 but there's some dependencies that need replacing) and as part of CI I make sure that no PRs have bad or missing migrations. Problem is that 2.2 and 3.2 have different ideas of what `validate_slug` means because the autogenerated migrations cannot agree between the two versions. It's pretty easy to reproduce, just have a model with a field using the `validate_slug` validator, create a migration using 2.2, then switch to 3.2 and check for migrations again. It seems like a string changed somewhere that causes the migration auto-generator to think it needs a change, but switching back to 2.2 and trying to generate the migrations again will flap it right back.

I was able to work around it by editing the historical migration and having it reference `validate_slug` directly instead of the `RegexValidator` that it's an alias for, but that seems less than ideal. Not sure how/if this can be addressed, but maybe if somebody else runs into this issue they can find this ticket and use my workaround.

If this is unclear I can attach an example project."	Bug	closed	Migrations	3.2	Normal	invalid			Unreviewed	0	0	0	0	0	0
