def __repr__(self):
        """First few elements of a query result"""
        limit = 3
        some = list(islice(self.all(), limit + 1))
        return '<%s %s%s>' % (
            self.__class__.__name__,
            ','.join(str(s) for s in some[:limit]),
            '...' if len(some) > limit else ''
        )
def __repr__ ( self ) : limit = 3 some = list ( islice ( self . all ( ) , limit + 1 ) ) return '<%s %s%s>' % ( self . __class__ . __name__ , ',' . join ( str ( s ) for s in some [ : limit ] ) , '...' if len ( some ) > limit else '' )
First few elements of a query result