1
0
mirror of https://github.com/django/django.git synced 2025-03-31 19:46:42 +00:00

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

This commit is contained in:
Mariusz Felisiak 2020-01-15 15:07:07 +01:00 committed by GitHub
parent c5e373d48c
commit d202846ced
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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