BugFix - _cls not set in constructor #1950

This commit is contained in:
Bastien Gérard
2018-11-13 20:52:39 +01:00
parent 78a9420f26
commit e31558318e
3 changed files with 29 additions and 4 deletions
+3
View File
@@ -91,6 +91,9 @@ class BaseDocument(object):
value = getattr(self, key, None)
setattr(self, key, value)
if '_cls' not in values:
self._cls = self._class_name
# Set passed values after initialisation
if self._dynamic:
dynamic_data = {}