Bugfix for weakref _instance bug.
This commit is contained in:
		| @@ -113,7 +113,7 @@ class BaseField(object): | |||||||
|                 instance._mark_as_changed(self.name) |                 instance._mark_as_changed(self.name) | ||||||
|  |  | ||||||
|         EmbeddedDocument = _import_class('EmbeddedDocument') |         EmbeddedDocument = _import_class('EmbeddedDocument') | ||||||
|         if isinstance(value, EmbeddedDocument) and value._instance is None: |         if isinstance(value, EmbeddedDocument): | ||||||
|             value._instance = weakref.proxy(instance) |             value._instance = weakref.proxy(instance) | ||||||
|         instance._data[self.name] = value |         instance._data[self.name] = value | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user