mirror of
https://github.com/jazzband/django-axes.git
synced 2026-03-16 22:30:23 +00:00
Merge pull request #1209 from hirotasoshu/fix_1191
fix: make 0007_alter_accessattempt_unique_together.py migration backwards compatible
This commit is contained in:
commit
2f142c4300
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