'Get player object based on name.
Args:
uname (str): The Player name to search for.
Returns:
player (Player): The found player.'

@returns_typeclass
def get_player_from_name(self, uname):

    try:
        return self.get(username__iexact=uname)
    except self.model.DoesNotExist:
        return None
