-
Notifications
You must be signed in to change notification settings - Fork 670
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fixes #410 * Added #411 to CHANGELOG * Delete unnecessary operations in 0011 Co-authored-by: Andrew Chen Wang <[email protected]>
- Loading branch information
1 parent
c775d29
commit c890b70
Showing
5 changed files
with
58 additions
and
3 deletions.
There are no files selected for viewing
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
28 changes: 28 additions & 0 deletions
28
rest_framework_simplejwt/token_blacklist/migrations/0010_fix_migrate_to_bigautofield.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,28 @@ | ||
# Generated by Django 3.2.3 on 2021-05-27 17:46 | ||
|
||
import os, fnmatch | ||
from pathlib import Path | ||
|
||
from django.db import migrations, models | ||
|
||
parent_dir = Path(__file__).resolve(strict=True).parent | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('token_blacklist', '0008_migrate_to_bigautofield'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='blacklistedtoken', | ||
name='id', | ||
field=models.BigAutoField(primary_key=True, serialize=False), | ||
), | ||
migrations.AlterField( | ||
model_name='outstandingtoken', | ||
name='id', | ||
field=models.BigAutoField(primary_key=True, serialize=False), | ||
), | ||
] |
22 changes: 22 additions & 0 deletions
22
rest_framework_simplejwt/token_blacklist/migrations/0011_linearizes_history.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,22 @@ | ||
import fnmatch | ||
import os | ||
from pathlib import Path | ||
|
||
from django.db import migrations, models | ||
|
||
parent_dir = Path(__file__).resolve(strict=True).parent | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
def __init__(self, *args, **kwargs): | ||
super().__init__(*args, **kwargs) | ||
self.dependencies = [ | ||
('token_blacklist', '0010_fix_migrate_to_bigautofield') | ||
] | ||
_m = sorted(fnmatch.filter(os.listdir(parent_dir), "000*.py")) | ||
if len(_m) == 9: | ||
self.dependencies.insert(0, ('token_blacklist', os.path.splitext(_m[8])[0])) | ||
|
||
operations = [ | ||
] |
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