11. Models Numeric and Logic

11.1. Numeric Fields

  • BigIntegerField

  • DecimalField

  • FloatField

  • IntegerField

  • PositiveBigIntegerField

  • PositiveIntegerField

  • PositiveSmallIntegerField

  • SmallIntegerField

  • float vs decimal

11.2. Logic Fields

  • BooleanField

11.3. Attributes

  • decimal_places (DecimalField)

  • max_digits (DecimalField)

11.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