Skip to content

Commit 4b98424

Browse files
committed
Properly call to after_conversion_to_entity
1 parent a4af68f commit 4b98424

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyravendb/tools/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def convert_to_entity(document, object_type, conventions, events, nested_object_
117117
metadata["Raven-Python-Type"] = "{0}.{1}".format(object_type.__module__, object_type.__name__)
118118
else: # no type defined on document or during load, return a dict
119119
dyn = _DynamicStructure(**document)
120-
events["after_conversion_to_entity"](dyn, document, metadata)
120+
events.after_conversion_to_entity(dyn, document, metadata)
121121
return dyn, metadata, original_metadata, original_document
122122
else:
123123
object_from_metadata = Utils.import_class(type_from_metadata)

0 commit comments

Comments
 (0)