def _calculate_photo_filename(instance, filename):
 return os.path.join(settings.USER_AVATAR_DIR, (str(uuid.uuid4()) + '.jpg'))

def _calculate_photo_filename ( instance , filename ) : return os . path . join ( settings . USER_AVATAR_DIR , ( str ( uuid . uuid4 ( ) ) + '.jpg' ) )
generate a unique filename for uploaded photo .