summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2019-10-30 16:17:20 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2019-10-30 16:18:18 +0100
commit3ca4457af3dce203848783c4e1c12fdcefae42ab (patch)
treeb5f5a6398a6e63318be30c23fb60ca6c3e20a0bd /docs
parent972eef6b9060aee4a092bedee38a7775fbbe5d0b (diff)
[2.2.x] Corrected error message in Many-to-many relationships docs.
Backport of a370dbd9543703677697e80701b5dbec8c8e7da7 from master
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/db/examples/many_to_many.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/topics/db/examples/many_to_many.txt b/docs/topics/db/examples/many_to_many.txt
index 746fb2f550..922dc977a4 100644
--- a/docs/topics/db/examples/many_to_many.txt
+++ b/docs/topics/db/examples/many_to_many.txt
@@ -54,7 +54,7 @@ You can't associate it with a ``Publication`` until it's been saved::
>>> a1.publications.add(p1)
Traceback (most recent call last):
...
- ValueError: 'Article' instance needs to have a primary key value before a many-to-many relationship can be used.
+ ValueError: "<Article: Django lets you build Web apps easily>" needs to have a value for field "id" before this many-to-many relationship can be used.
Save it!
::