15. Model Relations

15.1. Fields

  • ForeignKeyField

  • ManyToManyField

  • OneToOneField

15.2. Attributes

  • on_delete (ForeignKey, ManyToManyField)

  • related_name (ForeignKey, ManyToManyField)

  • to (ForeignKey, ManyToManyField)

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