From 1be7a1829337e055a0e9600408926990e964961b Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Mon, 11 Dec 2023 14:06:43 +0100 Subject: [PATCH] fix bollean --- oidc4vp/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oidc4vp/models.py b/oidc4vp/models.py index b29349c..ec3667d 100644 --- a/oidc4vp/models.py +++ b/oidc4vp/models.py @@ -106,7 +106,7 @@ class Authorization(models.Model): The code we use as a soft foreing key between Authorization and OAuth2VPToken. """ code = models.CharField(max_length=24, default=set_code) - code_used = models.BooleanField() + code_used = models.BooleanField(default=False) created = models.DateTimeField(auto_now=True) presentation_definition = models.CharField(max_length=250) organization = models.ForeignKey(