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

class Field [source] Field is an abstract class that represents a database table

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

deconstruct() [source] Returns a 4-tuple with enough information to recreate the field:

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

class CommaSeparatedIntegerField(max_length=None, **options) [source]

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

ManyToManyField.db_table The name of the table to create for storing the many-to-many data. If this is not provided, Django

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

Field.primary_key If True, this field is the primary key for the model. If you

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

class ForeignKey(othermodel, on_delete, **options) [source] A many-to-one relationship. Requires

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

class URLField(max_length=200, **options) [source] A CharField for a URL.

2025-01-10 15:47:30