-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump hashed_key max_length from 100 to 150 (#193)
* bump hashed_key max_length from 100 to 150 * add migrations for hashed_key length extension * linter files * bump id length to 150 * add argon2 password hashers to heroes app * run linter Co-authored-by: Mariot <[email protected]>
- Loading branch information
1 parent
1425544
commit c8f8a89
Showing
4 changed files
with
69 additions
and
2 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
src/rest_framework_api_key/migrations/0005_auto_20220110_1102.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Generated by Django 3.2.11 on 2022-01-10 11:02 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("rest_framework_api_key", "0004_prefix_hashed_key"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="apikey", | ||
name="hashed_key", | ||
field=models.CharField(editable=False, max_length=150), | ||
), | ||
migrations.AlterField( | ||
model_name="apikey", | ||
name="id", | ||
field=models.CharField( | ||
editable=False, | ||
max_length=150, | ||
primary_key=True, | ||
serialize=False, | ||
unique=True, | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Generated by Django 3.2.11 on 2022-01-10 11:02 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("heroes", "0003_alter_hero_id"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="heroapikey", | ||
name="hashed_key", | ||
field=models.CharField(editable=False, max_length=150), | ||
), | ||
migrations.AlterField( | ||
model_name="heroapikey", | ||
name="id", | ||
field=models.CharField( | ||
editable=False, | ||
max_length=150, | ||
primary_key=True, | ||
serialize=False, | ||
unique=True, | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters