From 4050892aa96bdd4c7f24152e51a97b26e0f79e56 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Sun, 21 Jan 2024 13:43:29 +0100 Subject: [PATCH] fix type for oidc4vp --- idhub/admin/views.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/idhub/admin/views.py b/idhub/admin/views.py index cebca94..51abf91 100644 --- a/idhub/admin/views.py +++ b/idhub/admin/views.py @@ -891,11 +891,13 @@ class SchemasImportAddView(SchemasMix): ldata = json.loads(data) assert credtools.validate_schema(ldata) name = ldata.get('name') + title = ldata.get('title') assert name + assert title except Exception: messages.error(self.request, _('This is not a valid schema!')) return - schema = Schemas.objects.create(file_schema=file_name, data=data, type=name) + schema = Schemas.objects.create(file_schema=file_name, data=data, type=title) schema.save() return schema