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

Predicate PrivateDjango::DjangoImpl::DB::Models::Model::instance

Gets a reference to an instance of django.db.models.Model class or any subclass, where modelClass specifies the class.

Import path

import semmle.python.frameworks.Django
Node instance(Node modelClass)