fix setem fluw

This commit is contained in:
Cayo Puigdefabregas 2024-02-02 09:18:15 +01:00
parent 805846a494
commit 9a90d87d69
2 changed files with 5 additions and 3 deletions

View File

@ -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)

View File

@ -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', [])