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

Field.unique If True, this field must be unique throughout the table. This is enforced

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

Field.db_column The name of the database column to use for this field. If this isn’t given, Django will use the field’s name

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

ForeignKey.to_field The field on the related object that the relation is to. By default, Django uses the primary key of the

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

from_db_value(value, expression, connection, context) Converts a value as returned by the database to a Python object. It is

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

FilePathField.allow_files Optional. Either True or False. Default is True. Specifies

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

class TextField(**options) [source] A large text field. The default form widget for this

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

DecimalField.max_digits The maximum number of digits allowed in the number. Note that this number must be greater than or equal

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

class AutoField(**options) [source] An IntegerField that automatically increments

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

FilePathField.path Required. The absolute filesystem path to a directory from which this FilePathField should get

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

ManyToManyField.related_query_name Same as ForeignKey.related_query_name.

2025-01-10 15:47:30