From 9a90d87d69b9a333a560474286775651f31606a5 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Fri, 2 Feb 2024 09:18:15 +0100 Subject: [PATCH] fix setem fluw --- oidc4vp/views.py | 3 +-- promotion/forms.py | 5 ++++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/oidc4vp/views.py b/oidc4vp/views.py index d6eec81..7161aed 100644 --- a/oidc4vp/views.py +++ b/oidc4vp/views.py @@ -137,8 +137,7 @@ class VerifyView(View): vp_token.verifing() response = vp_token.get_response_verify() vp_token.save() - if not vp_token.authorization.promotions.exists(): - response["response"] = "Validation Code {}".format(code) + response["response"] = "Validation Code {}".format(code) return JsonResponse(response) diff --git a/promotion/forms.py b/promotion/forms.py index 5b96423..30dce87 100644 --- a/promotion/forms.py +++ b/promotion/forms.py @@ -14,7 +14,10 @@ from promotion.models import Promotion class WalletForm(forms.Form): - organization = forms.ChoiceField(choices=[]) + organization = forms.ChoiceField( + choices=[], + widget=forms.Select(attrs={'class': 'form-select'}) + ) def __init__(self, *args, **kwargs): self.presentation_definition = kwargs.pop('presentation_definition', [])