fix type for oidc4vp
This commit is contained in:
parent
88f8485202
commit
4050892aa9
|
@ -891,11 +891,13 @@ class SchemasImportAddView(SchemasMix):
|
||||||
ldata = json.loads(data)
|
ldata = json.loads(data)
|
||||||
assert credtools.validate_schema(ldata)
|
assert credtools.validate_schema(ldata)
|
||||||
name = ldata.get('name')
|
name = ldata.get('name')
|
||||||
|
title = ldata.get('title')
|
||||||
assert name
|
assert name
|
||||||
|
assert title
|
||||||
except Exception:
|
except Exception:
|
||||||
messages.error(self.request, _('This is not a valid schema!'))
|
messages.error(self.request, _('This is not a valid schema!'))
|
||||||
return
|
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()
|
schema.save()
|
||||||
return schema
|
return schema
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue