diff --git a/base_phone/fields.py b/base_phone/fields.py index 4908a69..8b241aa 100644 --- a/base_phone/fields.py +++ b/base_phone/fields.py @@ -107,7 +107,7 @@ def convert_all_phone_fields(self, vals, fields_to_convert): def get_phone_fields(self, vals): fields_to_convert = [] for key in vals: - if isinstance(self._fields[key], Phone): + if isinstance(self._fields.get(key), Phone): fields_to_convert.append(key) return fields_to_convert