From cb65e62c84dd8f6b412151e81cf665975143d397 Mon Sep 17 00:00:00 2001 From: Michal Petrucha Date: Tue, 19 Apr 2016 23:19:34 +0200 Subject: [PATCH] Fixed typo in GenericRelatedObjectManager.add() error message. --- django/contrib/contenttypes/fields.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/contrib/contenttypes/fields.py b/django/contrib/contenttypes/fields.py index 592aee6c9f..09d4c1b4a5 100644 --- a/django/contrib/contenttypes/fields.py +++ b/django/contrib/contenttypes/fields.py @@ -574,7 +574,7 @@ def create_generic_related_manager(superclass, rel): if obj._state.adding or obj._state.db != db: raise ValueError( "%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) pks.append(obj.pk)