db.models.Model.clean()
  • References/Python/Django/API/Models/Model instance reference

Model.clean() [source] This method should be used to provide custom model validation, and

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

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

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

class Field [source] Field is an abstract class that represents a database table

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

defer(*fields) In some complex data-modeling situations, your models might contain a lot of fields, some of which could contain

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

SET_DEFAULT [source] Set the ForeignKey to its default value; a default for

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

ManyToManyField.related_query_name Same as ForeignKey.related_query_name.

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

Field.validators A list of validators to run for this field. See the validators documentation for more

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

sample By default, StdDev returns the population standard deviation. However, if sample=True, the

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

FilePathField.allow_files Optional. Either True or False. Default is True. Specifies

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

lhs The left-hand side - what is being transformed. It must follow the Query Expression API

2025-01-10 15:47:30