We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a74248 commit cc5ee23Copy full SHA for cc5ee23
1 file changed
docs/ref/models/relations.txt
@@ -14,12 +14,12 @@ Related objects reference
14
15
from django.db import models
16
17
- class Reporter(models.Model):
+ class Blog(models.Model):
18
# ...
19
pass
20
21
- class Article(models.Model):
22
- reporter = models.ForeignKey(Reporter, on_delete=models.CASCADE)
+ class Entry(models.Model):
+ blog = models.ForeignKey(Blog, on_delete=models.CASCADE, null=True)
23
24
In the above example, the methods below will be available on
25
the manager ``reporter.article_set``.
0 commit comments