From 725c549ae7a34d83447201da7190f8d71c7fc2fc Mon Sep 17 00:00:00 2001 From: Jack Aitken Date: Thu, 21 Jan 2021 21:04:39 -0500 Subject: [PATCH] Fixed #32372 -- Made examples in related objects reference docs consistent. --- docs/ref/models/relations.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/ref/models/relations.txt b/docs/ref/models/relations.txt index 1c2591cc0c1..0cda606aef0 100644 --- a/docs/ref/models/relations.txt +++ b/docs/ref/models/relations.txt @@ -14,12 +14,12 @@ Related objects reference from django.db import models - class Reporter(models.Model): + class Blog(models.Model): # ... pass - class Article(models.Model): - reporter = models.ForeignKey(Reporter, on_delete=models.CASCADE) + class Entry(models.Model): + blog = models.ForeignKey(Blog, on_delete=models.CASCADE, null=True) In the above example, the methods below will be available on the manager ``reporter.article_set``.