db.models.query.QuerySet.distinct()

distinct(*fields) Returns a new QuerySet that uses SELECT DISTINCT in its SQL query. This eliminates

2016-10-09 18:36:08
db.models.query.QuerySet.aggregate()

aggregate(*args, **kwargs) Returns a dictionary of aggregate values (averages, sums, etc.) calculated over the QuerySet

2016-10-09 18:36:04
db.models.query.QuerySet.raw()

raw(raw_query, params=None, translations=None) Takes a raw SQL query, executes it, and returns a django.db.models.query

2016-10-09 18:36:17
db.models.query.QuerySet.datetimes()

datetimes(field_name, kind, order='ASC', tzinfo=None) Returns a QuerySet that evaluates to a list of

2016-10-09 18:36:07
db.models.query.QuerySet.get_or_create()

get_or_create(defaults=None, **kwargs) A convenience method for looking up an object with the given kwargs (may

2016-10-09 18:36:12
db.models.query.QuerySet.select_for_update()

select_for_update(nowait=False) Returns a queryset that will lock rows until the end of the transaction, generating a SELECT

2016-10-09 18:36:18
db.models.query.QuerySet.db

db The database that will be used if this query is executed now.

2016-10-09 18:36:07
db.models.Count

class Count(expression, distinct=False, **extra) [source] Returns the number of objects that

2016-10-09 18:35:15
db.models.query.QuerySet.latest()

latest(field_name=None) Returns the latest object in the table, by date, using the field_name provided as the date

2016-10-09 18:36:13
db.models.query.QuerySet.in_bulk()

in_bulk(id_list=None) Takes a list of primary-key values and returns a dictionary mapping each primary-key value to an instance

2016-10-09 18:36:12