(self, name)
return any(g.name == name.lower() for g in self.groups)
Returns ``True`` if this user is in the group `name`, otherwise
        ``False``.
Returns ``True`` if this user is in the group `name`, otherwise
        ``False``.
Returns True if this user is in the group name otherwise False .
def in_group(self, name):
        """
        Returns ``True`` if this user is in the group `name`, otherwise
        ``False``.
        """
        return any(g.name == name.lower() for g in self.groups)
def in_group ( self , name ) : return any ( g . name == name . lower ( ) for g in self . groups )