From 0cbaa59247f4b404b79c2c98e638fa3a11b0c151 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Fri, 5 Feb 2021 09:33:49 +0100 Subject: [PATCH] always use failsafe attribute deserialization (#50902) --- src/authentic2_auth_fedict/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/authentic2_auth_fedict/__init__.py b/src/authentic2_auth_fedict/__init__.py index d20ce62..72451db 100644 --- a/src/authentic2_auth_fedict/__init__.py +++ b/src/authentic2_auth_fedict/__init__.py @@ -88,7 +88,7 @@ class Plugin(object): 'label': _('National Register Number'), 'name': 'nrn', 'serialize': json.dumps, - 'deserialize': json.loads, + 'deserialize': attribute_json_loads, 'field_class': fields.NrnField, }, { @@ -108,14 +108,14 @@ class Plugin(object): { 'label': _('Street'), 'serialize': json.dumps, - 'deserialize': json.loads, + 'deserialize': attribute_json_loads, 'name': 'street', 'field_class': fields.StreetField, }, { 'label': _('House number'), 'serialize': json.dumps, - 'deserialize': json.loads, + 'deserialize': attribute_json_loads, 'name': 'num_house', 'field_class': fields.NumHouseField, }, @@ -136,7 +136,7 @@ class Plugin(object): { 'label': _('Country'), 'serialize': json.dumps, - 'deserialize': json.loads, + 'deserialize': attribute_json_loads, 'name': 'country', 'field_class': fields.CountryField, },