db.models.expressions.RawSQL
  • References/Python/Django/API/Models/Query Expressions

class RawSQL(sql, params, output_field=None) [source] Sometimes database expressions can’t

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

class TruncDay(expression, output_field=None, tzinfo=None, **extra) [source]

2025-01-10 15:47:30
db.models.Options.get_latest_by
  • References/Python/Django/API/Models/Model Meta options

Options.get_latest_by The name of an orderable field in the model, typically a

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

class Transform [source] A Transform is a generic class to implement field transformations

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

Field.db_column The name of the database column to use for this field. If this isn’t given, Django will use the field’s name

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

FilePathField.path Required. The absolute filesystem path to a directory from which this FilePathField should get

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

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

2025-01-10 15:47:30
db.models.Options.managed
  • References/Python/Django/API/Models/Model Meta options

Options.managed Defaults to True, meaning Django will create the appropriate database tables in migrate

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

class Lower(expression, **extra) [source] Accepts a single text field or expression and returns

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

class OneToOneField(othermodel, on_delete, parent_link=False, **options) [source] A one-to-one

2025-01-10 15:47:30