3.3. Models Numeric and Logic¶
3.3.1. Numeric Fields¶
BigIntegerField
DecimalField
FloatField
IntegerField
PositiveBigIntegerField
PositiveIntegerField
PositiveSmallIntegerField
SmallIntegerField
float vs decimal
3.3.2. Logic Fields¶
BooleanField
3.3.3. Attributes¶
decimal_places
(DecimalField)max_digits
(DecimalField)
3.3.4. All¶
blank
choices
db_column
db_index
default
editable
error_message
help_text
limit_choices_to
max_length
null
primary_key
unique
validators
verbose_name