Skip to content

Commit 74993e4

Browse files
author
Mike Hearing
committed
Missing recursive assignment
1 parent fac9606 commit 74993e4

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

pyrestorm/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '0.1.1'
1+
__version__ = '0.1.2'

pyrestorm/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def _serialize_data(self, obj):
130130
local_diff[key][idx] = inner_value
131131
# Object/Dictionary
132132
else:
133-
self._serialize_data(value)
133+
local_diff[key] = self._serialize_data(value)
134134
# Primitive type
135135
elif self._data.get(key, '__SENTINEL__') != value:
136136
local_diff[key] = value

tests/test_models.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ def test_restmodel_nestedstructures(self):
7272
post.author = Author(name='Michael Hearing')
7373
post.comments = [Comment(body='Are we having fun yet?'), Comment(body='Hoe about now?')]
7474
post.fun_numbers = [1, 2, 3, 5, 7]
75-
post.meta = {'datetime': 'September 23, 2016'}
7675
post.archived = None
7776
post.save()
7877
self.assertEqual(post.id, 101)

0 commit comments

Comments
 (0)