13. Model Relations

13.1. Fields

  • ForeignKeyField

  • OneToOneField

  • ManyToManyField

13.2. Attributes

  • to (ForeignKey, ManyToManyField)

  • related_name (ForeignKey, ManyToManyField)

  • on_delete (ForeignKey, ManyToManyField)

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