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

class IntegerField(**options) [source] An integer. Values from -2147483648 to

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

Field.unique_for_year Like unique_for_date and unique_for_month.

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

FieldFile.size The result of the underlying

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

ManyToManyField.db_constraint Controls whether or not constraints should be created in the database for the foreign keys in

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

Field.error_messages The error_messages argument lets you override the default messages that the field will raise

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

value_to_string(obj) [source] Converts obj to a string. Used to serialize the

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

db_type(connection) [source] Returns the database column data type for the Field

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

ManyToManyField.related_name Same as ForeignKey.related_name.

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

Field.hidden Boolean flag that indicates if a field is used to back another non-hidden field’s functionality (e.g. the

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

FileField.upload_to This attribute provides a way of setting the upload directory and file name, and can be set in two ways

2025-01-10 15:47:30