mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Refs #29998 -- Corrected auto-created OneToOneField parent_link in MTI docs.
This commit is contained in:
parent
c5e373d48c
commit
d202846ced
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue