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

SET_NULL [source] Set the ForeignKey null; this is only possible if null

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

ForeignKey.swappable Controls the migration framework’s reaction if this ForeignKey is pointing at a swappable

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

delete() Performs an SQL delete query on all rows in the QuerySet and returns the number of objects deleted and

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

Field.is_relation Boolean flag that indicates if a field contains references to one or more other models for its functionality

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

Field.help_text Extra “help” text to be displayed with the form widget. It’s useful for documentation even if your field isn’t

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

prefetch_related(*lookups) Returns a QuerySet that will automatically retrieve, in a single batch, related objects

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

ForeignKey.related_name The name to use for the relation from the related object back to this one. It’s also the default value

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

count() Returns an integer representing the number of objects in the database matching the QuerySet. The count()

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

ForeignKey.on_delete When an object referenced by a ForeignKey is deleted, Django will emulate the behavior of

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

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

2025-01-10 15:47:30