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, },