Browse Source

Refs #29998 -- Corrected auto-created OneToOneField parent_link in MTI docs.

Mariusz Felisiak 5 years ago
parent
commit
d202846ced
1 changed files with 1 additions and 0 deletions
  1. 1 0
      docs/topics/db/models.txt

+ 1 - 0
docs/topics/db/models.txt

@@ -1092,6 +1092,7 @@ The automatically-created :class:`~django.db.models.OneToOneField` on
     place_ptr = models.OneToOneField(
         Place, on_delete=models.CASCADE,
         parent_link=True,
+        primary_key=True,
     )
 
 You can override that field by declaring your own