diff options
Diffstat (limited to 'warlock/core.py')
-rw-r--r-- | warlock/core.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/warlock/core.py b/warlock/core.py index 4b96345..4675b88 100644 --- a/warlock/core.py +++ b/warlock/core.py @@ -62,5 +62,8 @@ def model_factory(schema): def iteritems(self): return copy.deepcopy(self.__dict__['raw']).iteritems() + def items(self): + return copy.deepcopy(self.__dict__['raw']).items() + Model.__name__ = str(schema['name']) return Model |