db.models.fields.files.FieldFile.save()
  • References/Python/Django/API/Models/Model field reference

FieldFile.save(name, content, save=True) [source] This method takes a filename and file contents

2025-01-10 15:47:30
db.models.expressions.When
  • References/Python/Django/API/Models/Conditional Expressions

class When(condition=None, then=None, **lookups) [source] A When() object is

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

ImageField.height_field Name of a model field which will be auto-populated with the height of the image each time the model

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

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

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.Options.abstract
  • References/Python/Django/API/Models/Model Meta options

Options.abstract If abstract = True, this model will be an abstract base class

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

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

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

class GenericIPAddressField(protocol='both', unpack_ipv4=False, **options) [source] An IPv4

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

as_sql(self, compiler, connection) Responsible for producing the query string and parameters for the expression. The compiler

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

SET() [source] Set the ForeignKey to the value passed to SET()

2025-01-10 15:47:30