code: def _serialize(self, value, attr, obj):
          
          value = super(PhoneNumberField, self)._serialize(value, attr, obj)
  
          if value:
              value = self._format_phone_number(value, attr)
  
          return value
docs: Format and validate the phone number user libphonenumber.