Support for partial updates.
This commit is contained in:
parent
2689bcf953
commit
478062cb0f
3 changed files with 60 additions and 33 deletions
|
|
@ -397,10 +397,8 @@ class InstanceTest(unittest.TestCase):
|
|||
doc.embedded_field.dict_field['woot'] = "woot"
|
||||
|
||||
self.assertEqual(doc._get_changed_fields(), set([
|
||||
'list_field', 'dict_field', 'embedded_field']))
|
||||
#self.assertEqual(doc._get_changed_fields(), [
|
||||
# 'list_field', 'dict_field', 'embedded_field.list_field',
|
||||
# 'embedded_field.dict_field'])
|
||||
'list_field', 'dict_field', 'embedded_field.list_field',
|
||||
'embedded_field.dict_field']))
|
||||
doc.save()
|
||||
|
||||
doc = doc.reload()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue