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

description A verbose description of the field, e.g. for the django.contrib.admindocs application.

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

Field.auto_created Boolean flag that indicates if the field was automatically created, such as the OneToOneField

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

CASCADE [source] Cascade deletes. Django emulates the behavior of the SQL constraint ON DELETE

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

class FieldFile [source] When you access a FileField on a model, you are given

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

Field.unique_for_month Like unique_for_date, but requires the field to be unique with respect to the month.

2025-01-10 15:47:30