Skip to content

Commit 2f142c4

Browse files
authored
Merge pull request #1209 from hirotasoshu/fix_1191
fix: make 0007_alter_accessattempt_unique_together.py migration backwards compatible
2 parents aac7e67 + 6202062 commit 2f142c4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

axes/migrations/0007_alter_accessattempt_unique_together.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ class Migration(migrations.Migration):
3535
]
3636

3737
operations = [
38-
migrations.RunPython(deduplicate_attempts),
38+
migrations.RunPython(
39+
deduplicate_attempts, reverse_code=migrations.RunPython.noop
40+
),
3941
migrations.AlterUniqueTogether(
4042
name="accessattempt",
4143
unique_together={("username", "ip_address", "user_agent")},

0 commit comments

Comments
 (0)