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.first()

first() Returns the first object matched by the queryset, or None if there is no matching object. If the QuerySet

2016-10-09 18:36:11
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.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.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.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.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.db

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

2016-10-09 18:36:07
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.ordered

ordered True if the QuerySet is ordered — i.e. has an order_by() clause or a default

2016-10-09 18:36:14