always use failsafe attribute deserialization (#50902)
This commit is contained in:
parent
797c07a251
commit
0cbaa59247
|
@ -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,
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue