CodeQL library for Python
codeql/python-all 0.6.4 (changelog, source)
Search

Predicate PrivateDjango::DjangoImpl::DB::Models::querySetReturningMethod

Gets a method with name that returns a QuerySet. This method can originate on a QuerySet or a Manager. modelClass specifies the django Model that this query-set originates from.

See https://docs.djangoproject.com/en/3.1/ref/models/querysets/

Import path

import semmle.python.frameworks.Django
Node querySetReturningMethod(Node modelClass, string name)