From 4fcf7ff75a588f081f113506dfe70cc17cf91322 Mon Sep 17 00:00:00 2001 From: GappleBee Date: Sun, 10 Nov 2024 11:20:31 +0000 Subject: [PATCH] Made the direction of relationship clearer. --- docs/intro/tutorial02.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/intro/tutorial02.txt b/docs/intro/tutorial02.txt index bf7618ced1..d0c9cf40ce 100644 --- a/docs/intro/tutorial02.txt +++ b/docs/intro/tutorial02.txt @@ -155,11 +155,11 @@ this case, we've set the :attr:`~django.db.models.Field.default` value of ``votes`` to 0. Finally, note that a :class:`~django.db.models.ForeignKey` defines a -relationship between models. This creates a one-to-many relationship, where -a ``Question`` can have multiple related ``Choice`` instances. Django supports +relationship between models. This creates a many-to-one relationship, where +each ``Choice`` points to a single ``Question``, but a ``Question`` can have +multiple ``Choice`` instances pointing to it. Django supports all the common database relationships: many-to-one, many-to-many, and one-to-one. -relationships: many-to-one, many-to-many, and one-to-one. Activating models =================