(self, model, **kwargs)
return query_class(sm._meta, self, **kwargs)
Create a new :class:`Query` for *model*.
Create a new :class:`Query` for *model*.
Create a new : class : Query for * model * .
def query(self, model, **kwargs):
        '''Create a new :class:`Query` for *model*.'''
        sm = self.model(model)
        query_class = sm.manager.query_class or Query
        return query_class(sm._meta, self, **kwargs)
def query ( self , model , * * kwargs ) : sm = self . model ( model ) query_class = sm . manager . query_class or Query return query_class ( sm . _meta , self , * * kwargs )