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

Field.blank If True, the field is allowed to be blank. Default is False. Note

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

Model.get_deferred_fields() [source] A helper method that returns a set containing the attribute

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

pre_save(model_instance, add) [source] Method called prior to get_db_prep_save()

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

output_field Defines the type of class returned by the get_lookup() method. It must be a

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

Model.get_absolute_url() Define a get_absolute_url() method to tell Django how to calculate the canonical URL for

2025-01-10 15:47:30
db.models.Sum
  • References/Python/Django/API/Models/QuerySet API reference

class Sum(expression, output_field=None, **extra) [source] Computes the sum of all values

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

FieldFile.close() [source] Behaves like the standard Python file.close() method

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

ManyToManyField.swappable Controls the migration framework’s reaction if this ManyToManyField is pointing at a

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

bulk_create(objs, batch_size=None) This method inserts the provided list of objects into the database in an efficient manner

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

Field.unique_for_date Set this to the name of a DateField or DateTimeField to require that this field

2025-01-10 15:47:30