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

Field.editable If False, the field will not be displayed in the admin or any other

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.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.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.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.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.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.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