db.models.Count.distinct

distinct If distinct=True, the count will only include unique instances. This is the SQL equivalent of COUNT(DISTINCT

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

annotate(*args, **kwargs) Annotates each object in the QuerySet with the provided list of query

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

class QuerySet(model=None, query=None, using=None) [source] Usually when you’ll interact

2016-10-09 18:36:03
db.models.query.QuerySet.extra()

extra(select=None, where=None, params=None, tables=None, order_by=None, select_params=None) Sometimes, the Django query syntax

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

exists() Returns True if the QuerySet contains any results, and False if not. This tries

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

only(*fields) The only() method is more or less the opposite of defer(). You call it with the fields

2016-10-09 18:36:14
db.models.query.QuerySet.update()

update(**kwargs) Performs an SQL update query for the specified fields, and returns the number of rows matched (which may not

2016-10-09 18:36:19
db.models.query.QuerySet.reverse()

reverse() Use the reverse() method to reverse the order in which a queryset’s elements are returned. Calling

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

get(**kwargs) Returns the object matching the given lookup parameters, which should be in the format described in Field lookups

2016-10-09 18:36:11
db.models.query.QuerySet.values_list()

values_list(*fields, flat=False) This is similar to values() except that instead of returning dictionaries, it

2016-10-09 18:36:21