Module Expr Str ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias Assign NameStore ListLoad Str Str Str Str Str ClassDef bases NameLoad body Expr Str Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr ListLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str If UnaryOpNot NameLoad body Assign NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr For NameStore Call NameLoad Num Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr TupleLoad Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad Str SubscriptLoad NameLoad Slice NameLoad BinOpAdd NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad keyword NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str FunctionDef arguments args NameParam defaults vararg kwarg body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr NameLoad If UnaryOpNot Call NameLoad NameLoad Str body Assign AttributeStore NameLoad attr Dict decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad kwarg body Return Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad keyword Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr NameLoad For NameStore Call NameLoad Num Call NameLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad Str SubscriptLoad NameLoad Slice NameLoad BinOpAdd NameLoad NameLoad NameLoad Expr Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore ListLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign TupleStore NameStore NameStore NameStore NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad If BoolOpOr UnaryOpNot NameLoad NameLoad body Raise Call NameLoad BinOpMod Str NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Continue Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore ListComp IfExp Call NameLoad SubscriptLoad NameLoad Index Num NameLoad TupleLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Call NameLoad SubscriptLoad NameLoad Index Num NameLoad comprehension NameStore NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str TryExcept body Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr TupleLoad NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad ListLoad TupleLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot AttributeLoad NameLoad attr body Return ListLoad Assign NameStore ListLoad For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr TupleLoad Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Str FunctionDef arguments args NameParam defaults vararg kwarg body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr ListLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad kwarg body Assign NameStore Dict Str Str Str SubscriptLoad AttributeLoad NameLoad attr Slice SubscriptLoad AttributeLoad NameLoad attr Slice AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Assign AttributeStore NameLoad attr NameLoad For NameStore NameLoad body For NameStore NameLoad body Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr If Call NameLoad NameLoad NameLoad body Expr Call NameLoad NameLoad AttributeLoad NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Str body Expr Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign NameStore SubscriptLoad NameLoad Index Num Assert Call NameLoad NameLoad NameLoad BinOpMod Str AttributeLoad NameLoad attr Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Num Index Num Assign NameStore Call NameLoad TupleLoad NameLoad AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad NameLoad Assign AttributeStore NameLoad attr ListLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr ListLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr BoolOpOr BoolOpAnd CompareEq NameLoad Str ListLoad Num ListLoad Num If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr TupleLoad BinOpMod Str NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr keyword NameLoad decorator_list decorator_list
N/A N/A 
Query subclasses which provide extra functionality beyond simple data retrieval.
 django.core.exceptions FieldError django.db.models.fields DateField FieldDoesNotExist django.db.models.sql.constants * django.db.models.sql.datastructures Date django.db.models.sql.query Query django.db.models.sql.where AND Constraint django.utils.functional Promise django.utils.encoding force_unicode N/A __all__ N/A DeleteQuery UpdateQuery InsertQuery DateQuery AggregateQuery DeleteQuery N/A Query N/A N/A 
    Delete queries are done through this class, since they are more constrained
    than general queries.
     N/A compiler SQLDeleteCompiler do_query N/A N/A self table where using N/A N/A N/A N/A self tables N/A table N/A N/A self where where N/A N/A N/A N/A N/A self get_compiler using execute_sql None N/A delete_batch N/A N/A self pk_list using field N/A None N/A N/A 
        Set up and execute delete queries for all the objects in pk_list.

        More than one physical query may be executed if there are a
        lot of values in pk_list.
         N/A N/A field N/A N/A field N/A N/A N/A self model _meta pk N/A offset N/A range 0 N/A len pk_list GET_ITERATOR_CHUNK_SIZE N/A N/A where N/A N/A self where_class N/A N/A N/A where add N/A N/A Constraint None N/A field column field in N/A pk_list N/A offset N/A offset GET_ITERATOR_CHUNK_SIZE AND N/A N/A N/A self do_query N/A N/A N/A self model _meta db_table where using using N/A N/A UpdateQuery N/A Query N/A N/A 
    Represents an "update" SQL query.
     N/A compiler SQLUpdateCompiler __init__ N/A N/A self N/A args kwargs N/A N/A N/A N/A N/A super UpdateQuery self __init__ args kwargs N/A N/A N/A self _setup_query N/A _setup_query N/A N/A self N/A N/A N/A 
        Runs on initialization and after cloning. Any attributes that would
        normally be set in __init__ should go in here, instead, so that they
        are also set up after a clone() call.
         N/A N/A self values N/A N/A N/A self related_ids None N/A N/A N/A hasattr self related_updates N/A N/A N/A self related_updates N/A N/A clone N/A N/A self klass N/A None kwargs N/A N/A N/A N/A N/A super UpdateQuery self clone klass related_updates N/A N/A N/A self related_updates copy kwargs N/A update_batch N/A N/A self pk_list values using N/A N/A N/A pk_field N/A N/A N/A self model _meta pk N/A N/A N/A self add_update_values values N/A offset N/A range 0 N/A len pk_list GET_ITERATOR_CHUNK_SIZE N/A N/A N/A self where N/A N/A self where_class N/A N/A N/A N/A self where add N/A N/A Constraint None N/A pk_field column pk_field in N/A pk_list N/A offset N/A offset GET_ITERATOR_CHUNK_SIZE AND N/A N/A N/A N/A N/A self get_compiler using execute_sql None N/A add_update_values N/A N/A self values N/A N/A N/A 
        Convert a dictionary of field name to value mappings into an update
        query. This is the entry point for the public update() method on
        querysets.
         N/A values_seq N/A N/A N/A name val N/A N/A values iteritems N/A N/A N/A field model direct m2m N/A N/A N/A N/A self model _meta get_field_by_name name N/A N/A N/A direct m2m N/A N/A N/A FieldError N/A Cannot update model field %r (only non-relations and foreign keys permitted). field N/A model N/A N/A N/A N/A self add_related_update model field val N/A N/A N/A N/A values_seq append N/A field model val N/A N/A N/A self add_update_fields values_seq N/A add_update_fields N/A N/A self values_seq N/A N/A N/A 
        Turn a sequence of (field, model, value) triples into an update query.
        Used by add_update_values() as well as the "fast" update path when
        saving models.
         N/A values_seq N/A N/A N/A isinstance N/A value N/A 2 Promise N/A N/A value N/A 0 N/A value N/A 1 N/A force_unicode N/A value N/A 2 value N/A value values_seq N/A N/A N/A N/A self values extend values_seq N/A add_related_update N/A N/A self model field value N/A N/A N/A 
        Adds (name, value) to an update query for an ancestor model.

        Updates are coalesced so that we only run one update query per ancestor.
         N/A N/A N/A N/A N/A N/A N/A self related_updates N/A model append N/A field None value N/A N/A N/A KeyError N/A N/A N/A N/A self related_updates N/A model N/A N/A field None value N/A get_related_updates N/A N/A self N/A N/A N/A 
        Returns a list of query objects: one for each update required to an
        ancestor model. Each query will have the same filtering conditions as
        the current query but will only update a single table.
         N/A N/A N/A self related_updates N/A N/A N/A N/A result N/A N/A N/A model values N/A N/A N/A self related_updates iteritems N/A N/A query N/A UpdateQuery model N/A N/A query values values N/A N/A N/A self related_ids None N/A N/A N/A N/A query add_filter N/A pk__in N/A self related_ids N/A N/A N/A result append query N/A result N/A N/A InsertQuery N/A Query N/A N/A compiler SQLInsertCompiler __init__ N/A N/A self N/A args kwargs N/A N/A N/A N/A N/A super InsertQuery self __init__ args kwargs N/A N/A self fields N/A N/A N/A self objs N/A N/A clone N/A N/A self klass N/A None kwargs N/A N/A extras N/A fields objs raw N/A N/A self fields N/A N/A N/A self objs N/A N/A self raw N/A N/A N/A extras update kwargs N/A N/A N/A N/A super InsertQuery self clone klass extras N/A insert_values N/A N/A self fields objs raw N/A False N/A N/A 
        Set up the insert query from the 'insert_values' dictionary. The
        dictionary gives the model field names and their target values.

        If 'raw_values' is True, the values in the 'insert_values' dictionary
        are inserted directly into the query, rather than passed as SQL
        parameters. This provides a way to insert NULL and DEFAULT keywords
        into the query, for example.
         N/A N/A self fields fields N/A field fields N/A N/A obj objs N/A N/A value N/A getattr obj N/A field attname N/A N/A isinstance value Promise N/A N/A N/A setattr obj N/A field attname N/A force_unicode value N/A N/A self objs objs N/A N/A self raw raw N/A N/A DateQuery N/A Query N/A N/A 
    A DateQuery is a normal query, except that it specifically selects a single
    date field. This requires some special handling when converting the results
    back to Python objects, so we put it in a separate class.
     N/A compiler SQLDateCompiler add_date_select N/A N/A self field_name lookup_type order N/A ASC N/A N/A 
        Converts the query into a date extraction query.
         N/A N/A N/A result N/A N/A self setup_joins N/A N/A field_name split LOOKUP_SEP N/A N/A self get_meta N/A N/A self get_initial_alias False N/A N/A N/A FieldError N/A N/A N/A FieldDoesNotExist N/A %s has no field named '%s' N/A N/A N/A N/A self model _meta object_name field_name N/A field N/A result N/A 0 N/A N/A isinstance field DateField N/A %r isn't a DateField. N/A field name N/A alias N/A N/A result N/A 3 N/A -1 N/A select N/A Date N/A alias N/A field column lookup_type N/A N/A self select N/A select N/A N/A self select_fields N/A None N/A N/A self select_related False N/A N/A N/A self set_extra_mask N/A N/A N/A self distinct True N/A N/A self order_by N/A N/A N/A order ASC N/A 1 N/A -1 N/A N/A field null N/A N/A N/A N/A self add_filter N/A N/A %s__isnull field_name False N/A N/A AggregateQuery N/A Query N/A N/A 
    An AggregateQuery takes another query as a parameter to the FROM
    clause and only selects the elements in the provided list.
     N/A compiler SQLAggregateCompiler add_subquery N/A N/A self query using N/A N/A N/A N/A N/A self subquery N/A self sub_params N/A N/A N/A N/A query get_compiler using as_sql with_col_aliases True N/A N/A