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

Field.null If True, Django will store empty values as NULL in the database. Default is False

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

ImageField.width_field Name of a model field which will be auto-populated with the width of the image each time the model instance

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
db.models.FilePathField
  • References/Python/Django/API/Models/Model field reference

class FilePathField(path=None, match=None, recursive=False, max_length=100, **options) [source] A

2025-01-10 15:47:30
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.fields.files.FieldFile.name
  • References/Python/Django/API/Models/Model field reference

FieldFile.name The name of the file including the relative path from the root of the

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