Fix wording of an exception message in QuerySet.insert

This commit is contained in:
Stefan Wojcik
2019-06-12 08:27:22 +02:00
parent 1f02d5fbbd
commit 996618a495
2 changed files with 9 additions and 3 deletions

View File

@@ -335,7 +335,7 @@ class BaseQuerySet(object):
% str(self._document))
raise OperationError(msg)
if doc.pk and not doc._created:
msg = 'Some documents have ObjectIds use doc.update() instead'
msg = 'Some documents have ObjectIds, use doc.update() instead'
raise OperationError(msg)
signal_kwargs = signal_kwargs or {}