Skip to content
This repository was archived by the owner on Aug 29, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion oauth2_provider/migrations/0006_auto_20230330_1837.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='idtoken',
name='jti',
field=models.UUIDField(default=uuid.uuid4, editable=False, unique=True),
field=models.UUIDField(blank=True, null=True),
),
migrations.AlterField(
model_name='application',
Expand Down
6 changes: 5 additions & 1 deletion oauth2_provider/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,11 @@ class AbstractIDToken(models.Model):
related_name="%(app_label)s_%(class)s",
)
token = models.TextField(unique=True)
jti = models.UUIDField(unique=True, default=uuid.uuid4, editable=False, verbose_name="JWT Token ID")
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mackosx I think this will work as staging-us won't run 0006 and staging-ca will and hopefully succeed next deploy 🤔.

jti = models.UUIDField(
blank=True,
null=True,
verbose_name="JWT Token ID"
)
application = models.ForeignKey(
oauth2_settings.APPLICATION_MODEL,
on_delete=models.CASCADE,
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = django-oauth-toolkit
version = 1.5.0
version = 1.5.1
description = OAuth2 Provider for Django
long_description = file: README.rst
long_description_content_type = text/x-rst
Expand Down