Skip to content

Commit 6202062

Browse files
committed
fix: make 007 migration backwards compatible
1 parent aac7e67 commit 6202062

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)