From d202846ced2f58d7a34ad80bfe2bde8a542a70b9 Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Wed, 15 Jan 2020 15:07:07 +0100 Subject: [PATCH] Refs #29998 -- Corrected auto-created OneToOneField parent_link in MTI docs. --- docs/topics/db/models.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/topics/db/models.txt b/docs/topics/db/models.txt index a047f58b788..75a46485acd 100644 --- a/docs/topics/db/models.txt +++ b/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