1
0
mirror of https://github.com/django/django.git synced 2025-04-10 08:19:39 +00:00

[3.0.x] Corrected error message in Many-to-many relationships docs.

Backport of a370dbd9543703677697e80701b5dbec8c8e7da7 from master
This commit is contained in:
Mariusz Felisiak 2019-10-30 16:17:20 +01:00
parent 3c5f8313c2
commit 453074bc1f

View File

@ -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!
::