(self, vals)
It returns the base64 encoded image string for the default avatar.

        Args:
            vals (dict): Values dict as passed to create.

        Returns:
            str: A base64 encoded image.
            NoneType: None if no result.
It returns the base64 encoded image string for the default avatar.
It returns the base64 encoded image string for the default avatar .
def _get_default_image_encoded(self, vals):
        """ It returns the base64 encoded image string for the default avatar.

        Args:
            vals (dict): Values dict as passed to create.

        Returns:
            str: A base64 encoded image.
            NoneType: None if no result.
        """
        image_path = self._get_default_image_path(vals)
        if not image_path:
            return
        with open(image_path, 'r') as image:
            return image.read().encode('base64')
def _get_default_image_encoded ( self , vals ) : image_path = self . _get_default_image_path ( vals ) if not image_path : return with open ( image_path , 'r' ) as image : return image . read ( ) . encode ( 'base64' )