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

only(*fields) The only() method is more or less the opposite of defer(). You call it with the fields

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

class EmailField(max_length=254, **options) [source] A CharField that checks

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.ForeignKey.to_field
  • References/Python/Django/API/Models/Model field reference

ForeignKey.to_field The field on the related object that the relation is to. By default, Django uses the primary key of the

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

class Substr(expression, pos, length=None, **extra) [source] Returns a substring of length

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

class SmallIntegerField(**options) [source] Like an IntegerField, but only allows

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

Model.__hash__() [source] The __hash__() method is based on the instance’s primary

2025-01-10 15:47:30
db.models.fields.related.RelatedManager.remove()
  • References/Python/Django/API/Models/Related objects reference

remove(*objs) Removes the specified model objects from the related object set:

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
db.models.functions.datetime.TruncMonth
  • References/Python/Django/API/Models/Database Functions

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

2025-01-10 15:47:30