def eq_(self, value):
        ''' Creates a query expression where ``this field == value``

            .. note:: The prefered usage is via an operator: ``User.name == value``
        '''
        if isinstance(value, QueryField):
            return self.__cached_id == value.__cached_id
        return QueryExpression({ self : self.get_type().wrap_value(value) })
def eq_ ( self , value ) : if isinstance ( value , QueryField ) : return self . __cached_id == value . __cached_id return QueryExpression ( { self : self . get_type ( ) . wrap_value ( value ) } )
Creates a query expression where ``this field == value``

            .. note:: The prefered usage is via an operator: ``User.name == value``