db.models.Field.db_tablespace
  • References/Python/Django/API/Models/Model field reference

Field.db_tablespace The name of the database tablespace to use for this field’s index, if this field

2025-01-10 15:47:30
db.models.Expression.asc()
  • References/Python/Django/API/Models/Query Expressions

asc() Returns the expression ready to be sorted in ascending order.

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

formfield(form_class=None, choices_form_class=None, **kwargs) [source] Returns the default

2025-01-10 15:47:30
db.models.Model.get_FOO_display()
  • References/Python/Django/API/Models/Model instance reference

Model.get_FOO_display() For every field that has

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

earliest(field_name=None) Works otherwise like latest() except the direction is changed.

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

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

2025-01-10 15:47:30
db.models.F
  • References/Python/Django/API/Models/Query Expressions

class F [source] An F() object represents the value of a model field or annotated

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

get_transform(transform_name) Must return the lookup named transform_name. For instance, by returning self

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

rel_db_type(connection) [source] New in Django

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

Field.unique_for_year Like unique_for_date and unique_for_month.

2025-01-10 15:47:30