From 4dc3e91b558509509bd0ccbe848a55d10b3eafe6 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Wed, 24 Jan 2024 17:12:46 +0100 Subject: [PATCH] fix SUPPORTED_CREDENTIALS hardcoded --- promotion/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/promotion/views.py b/promotion/views.py index 79b47ea..b88d8f5 100644 --- a/promotion/views.py +++ b/promotion/views.py @@ -1,5 +1,6 @@ import json +from django.conf import settings from django.views.generic.edit import View, FormView from django.shortcuts import redirect from django.template.loader import get_template @@ -116,7 +117,7 @@ class SelectWalletView(FormView): def get_form_kwargs(self): kwargs = super().get_form_kwargs() - kwargs['presentation_definition'] = json.dumps(["MemberShipCard"]) + kwargs['presentation_definition'] = json.dumps(settings.SUPPORTED_CREDENTIALS) return kwargs def form_valid(self, form):