3.7. Model Relations

3.7.1. Fields

  • ForeignKeyField

  • ManyToManyField

  • OneToOneField

3.7.2. Attributes

  • on_delete (ForeignKey, ManyToManyField)

  • related_name (ForeignKey, ManyToManyField)

  • to (ForeignKey, ManyToManyField)

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