mirror of
https://github.com/django/django.git
synced 2025-07-19 17:19:12 +00:00
[1.9.x] Fixed typo in GenericRelatedObjectManager.add() error message.
Backport of cb65e62c84dd8f6b412151e81cf665975143d397 from master
This commit is contained in:
parent
799e81ef6b
commit
576e8b6210
@ -535,7 +535,7 @@ def create_generic_related_manager(superclass, rel):
|
|||||||
if obj._state.adding or obj._state.db != db:
|
if obj._state.adding or obj._state.db != db:
|
||||||
raise ValueError(
|
raise ValueError(
|
||||||
"%r instance isn't saved. Use bulk=False or save "
|
"%r instance isn't saved. Use bulk=False or save "
|
||||||
"the object first. but must be." % obj
|
"the object first." % obj
|
||||||
)
|
)
|
||||||
check_and_update_obj(obj)
|
check_and_update_obj(obj)
|
||||||
pks.append(obj.pk)
|
pks.append(obj.pk)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user