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

Module PrivateDjango::DjangoImpl::DB::Models::Model

Provides models for the django.db.models.Model class and subclasses.

See https://docs.djangoproject.com/en/3.1/topics/db/models/.

Import path

import semmle.python.frameworks.Django

Predicates

instance

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

subclassRef

Gets a reference to the django.db.models.Model class or any subclass.

Classes

InstanceSource

A source of instances of django.db.models.Model class or any subclass, extend this class to model new instances.

QuerySetMethodInstanceCollection

A method call on a query-set or manager that returns a collection containing instances of a django model.

QuerySetMethodInstanceDictValue

A method call on a query-set or manager that returns a dictionary containing instances of a django models as the values.