class Prefetch(lookup, queryset=None, to_attr=None) [source] The Prefetch()
extra(select=None, where=None, params=None, tables=None, order_by=None, select_params=None) Sometimes, the Django query syntax
distinct If distinct=True, the count will only include unique instances. This is the SQL equivalent of COUNT(DISTINCT
all() Returns a copy of the current QuerySet (or QuerySet subclass). This can be useful in
none() Calling none() will create a queryset that never returns any objects and no query will be executed when accessing the
get(**kwargs) Returns the object matching the given lookup parameters, which should be in the format described in Field lookups
only(*fields) The only() method is more or less the opposite of defer(). You call it with the fields
exists() Returns True if the QuerySet contains any results, and False if not. This tries
sample By default, StdDev returns the population standard deviation. However, if sample=True, the
update(**kwargs) Performs an SQL update query for the specified fields, and returns the number of rows matched (which may not
Page 5 of 6