db.models.Expression.reverse_ordering()
  • References/Python/Django/API/Models/Query Expressions

reverse_ordering() Returns self with any modifications required to reverse the sort order within an order_by

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

Model.pk Regardless of whether you define a primary key field yourself, or let Django supply one for you, each model will have

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

class Prefetch(lookup, queryset=None, to_attr=None) [source] The Prefetch()

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

Field.related_model Points to the model the field relates to. For example, Author in ForeignKey(Author, on_delete=models

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

function A class attribute describing the aggregate function that will be generated. Specifically, the function

2025-01-10 15:47:30
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.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.expressions.Case
  • References/Python/Django/API/Models/Conditional Expressions

class Case(*cases, **extra) [source] A Case() expression is like the

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

class Func(*expressions, **extra) [source] function

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

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

2025-01-10 15:47:30