mirror of
https://github.com/jazzband/django-axes.git
synced 2026-03-16 22:30:23 +00:00
fix: make 007 migration backwards compatible
This commit is contained in:
parent
aac7e67249
commit
6202062f91
1 changed files with 3 additions and 1 deletions
|
|
@ -35,7 +35,9 @@ class Migration(migrations.Migration):
|
|||
]
|
||||
|
||||
operations = [
|
||||
migrations.RunPython(deduplicate_attempts),
|
||||
migrations.RunPython(
|
||||
deduplicate_attempts, reverse_code=migrations.RunPython.noop
|
||||
),
|
||||
migrations.AlterUniqueTogether(
|
||||
name="accessattempt",
|
||||
unique_together={("username", "ip_address", "user_agent")},
|
||||
|
|
|
|||
Loading…
Reference in a new issue