distinct(*fields) Returns a new QuerySet that uses SELECT DISTINCT in its SQL query. This eliminates
aggregate(*args, **kwargs) Returns a dictionary of aggregate values (averages, sums, etc.) calculated over the QuerySet
raw(raw_query, params=None, translations=None) Takes a raw SQL query, executes it, and returns a django.db.models.query
datetimes(field_name, kind, order='ASC', tzinfo=None) Returns a QuerySet that evaluates to a list of
get_or_create(defaults=None, **kwargs) A convenience method for looking up an object with the given kwargs (may
select_for_update(nowait=False) Returns a queryset that will lock rows until the end of the transaction, generating a SELECT
db The database that will be used if this query is executed now.
class Count(expression, distinct=False, **extra) [source] Returns the number of objects that
latest(field_name=None) Returns the latest object in the table, by date, using the field_name provided as the date
in_bulk(id_list=None) Takes a list of primary-key values and returns a dictionary mapping each primary-key value to an instance
Page 3 of 6