def __repr__(self):
        """
        Pretty printing of models by their primary key
        """
        return '{} <{}>'.format(self.__class__.__name__,
                                ', '.join(('{}={}'.format(k, getattr(self, k)) for k,v in six.iteritems(self._primary_keys)))
                                )
def __repr__ ( self ) : return '{} <{}>' . format ( self . __class__ . __name__ , ', ' . join ( ( '{}={}' . format ( k , getattr ( self , k ) ) for k , v in six . iteritems ( self . _primary_keys ) ) ) )
Pretty printing of models by their primary key