diff options
| author | Michal Petrucha <michal.petrucha@koniiiik.org> | 2016-04-19 23:19:34 +0200 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-04-20 10:06:49 -0400 |
| commit | cb65e62c84dd8f6b412151e81cf665975143d397 (patch) | |
| tree | 1a3e2776c0d423d21e6413bafb4c26b84bddce41 | |
| parent | e47b52255ca8b888446ee3019416fe03a2b50735 (diff) | |
Fixed typo in GenericRelatedObjectManager.add() error message.
| -rw-r--r-- | django/contrib/contenttypes/fields.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |
