DateField.auto_now_add Automatically set the field to now when the object is first created. Useful for creation of timestamps
FieldFile.save(name, content, save=True) [source] This method takes a filename and file contents
ForeignKey.swappable Controls the migration framework’s reaction if this ForeignKey is pointing at a swappable
Field.null If True, Django will store empty values as NULL in the database. Default is False
Field.help_text Extra “help” text to be displayed with the form widget. It’s useful for documentation even if your field isn’t
Field.auto_created Boolean flag that indicates if the field was automatically created, such as the OneToOneField
SET() [source] Set the ForeignKey to the value passed to SET()
Field.editable If False, the field will not be displayed in the admin or any other
CASCADE [source] Cascade deletes. Django emulates the behavior of the SQL constraint ON DELETE
ImageField.width_field Name of a model field which will be auto-populated with the width of the image each time the model instance
Page 1 of 12