fix SUPPORTED_CREDENTIALS hardcoded
This commit is contained in:
parent
f8574569ac
commit
4dc3e91b55
|
@ -1,5 +1,6 @@
|
||||||
import json
|
import json
|
||||||
|
|
||||||
|
from django.conf import settings
|
||||||
from django.views.generic.edit import View, FormView
|
from django.views.generic.edit import View, FormView
|
||||||
from django.shortcuts import redirect
|
from django.shortcuts import redirect
|
||||||
from django.template.loader import get_template
|
from django.template.loader import get_template
|
||||||
|
@ -116,7 +117,7 @@ class SelectWalletView(FormView):
|
||||||
|
|
||||||
def get_form_kwargs(self):
|
def get_form_kwargs(self):
|
||||||
kwargs = super().get_form_kwargs()
|
kwargs = super().get_form_kwargs()
|
||||||
kwargs['presentation_definition'] = json.dumps(["MemberShipCard"])
|
kwargs['presentation_definition'] = json.dumps(settings.SUPPORTED_CREDENTIALS)
|
||||||
return kwargs
|
return kwargs
|
||||||
|
|
||||||
def form_valid(self, form):
|
def form_valid(self, form):
|
||||||
|
|
Loading…
Reference in New Issue