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

OneToOneField.parent_link When True and used in a model which inherits from another concrete

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

class BinaryField(**options) [source] A field to store raw binary data. It only supports

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

Field.db_index If True, a database index will be created for this field.

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

class FloatField(**options) [source] A floating-point number represented in Python by a float

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

ManyToManyField.through_fields Only used when a custom intermediary model is specified. Django will normally determine which

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

class DecimalField(max_digits=None, decimal_places=None, **options) [source] A fixed-precision

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.symmetrical
  • References/Python/Django/API/Models/Model field reference

ManyToManyField.symmetrical Only used in the definition of ManyToManyFields on self. Consider the following model:

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