Updated doc
This commit is contained in:
parent
839ed8a64a
commit
2bb9493fcf
1 changed files with 6 additions and 5 deletions
|
|
@ -242,7 +242,8 @@ class Document(BaseDocument):
|
|||
message = u'Tried to save duplicate unique keys (%s)'
|
||||
raise OperationError(message % unicode(err))
|
||||
id_field = self._meta['id_field']
|
||||
self[id_field] = self._fields[id_field].to_python(object_id)
|
||||
if id_field not in self._meta.get('shard_key', []):
|
||||
self[id_field] = self._fields[id_field].to_python(object_id)
|
||||
|
||||
self._changed_fields = []
|
||||
self._created = False
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue