db.models.query.QuerySet.raw()
  • References/Python/Django/API/Models/QuerySet API reference

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

2025-01-10 15:47:30
db.models.Transform.bilateral
  • References/Python/Django/API/Models/Lookup API reference

bilateral A boolean indicating whether this transformation should apply to both lhs and rhs. Bilateral

2025-01-10 15:47:30
db.models.query.QuerySet.db
  • References/Python/Django/API/Models/QuerySet API reference

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

2025-01-10 15:47:30
db.models.functions.datetime.ExtractMonth
  • References/Python/Django/API/Models/Database Functions

class ExtractMonth(expression, tzinfo=None, **extra) [source] lookup_name

2025-01-10 15:47:30
db.models.Field.db_index
  • References/Python/Django/API/Models/Model field reference

Field.db_index If True, a database index will be created for this field.

2025-01-10 15:47:30
db.models.DecimalField.decimal_places
  • References/Python/Django/API/Models/Model field reference

DecimalField.decimal_places The number of decimal places to store with the number. For example

2025-01-10 15:47:30
db.models.Model.objects
  • References/Python/Django/API/Models/Model class reference

Model.objects Each non-abstract

2025-01-10 15:47:30
db.models.functions.Least
  • References/Python/Django/API/Models/Database Functions

class Least(*expressions, **extra) [source] New

2025-01-10 15:47:30
db.models.ManyToManyField.through_fields
  • References/Python/Django/API/Models/Model field reference

ManyToManyField.through_fields Only used when a custom intermediary model is specified. Django will normally determine which

2025-01-10 15:47:30
db.models.query.QuerySet.select_for_update()
  • References/Python/Django/API/Models/QuerySet API reference

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

2025-01-10 15:47:30