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