9. Models Numeric and Logic

9.1. Numeric Fields

  • IntegerField

  • FloatField

  • DecimalField

  • PositiveIntegerField

  • PositiveSmallIntegerField

  • PositiveBigIntegerField

  • SmallIntegerField

  • BigIntegerField

  • float vs decimal

9.2. Logic Fields

  • BooleanField

9.3. Attributes

  • decimal_places (DecimalField)

  • max_digits (DecimalField)

9.4. All

  • verbose_name

  • max_length

  • choices

  • validators

  • help_text

  • null

  • blank

  • default

  • db_index

  • db_column

  • default

  • limit_choices_to

  • editable

  • primary_key

  • help_text

  • error_message

  • unique