Merge remote-tracking branch 'origin/pr/242'

Conflicts:
	tests/test_document.py
This commit is contained in:
Ross Lawley
2013-04-16 20:07:03 +00:00
3 changed files with 59 additions and 2 deletions

View File

@@ -269,7 +269,7 @@ class Document(BaseDocument):
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._clear_changed_fields()
self._created = False
signals.post_save.send(self.__class__, document=self, created=created)
return self