Skip to content

Commit

Permalink
Fix the JSONField.update() method.
Browse files Browse the repository at this point in the history
  • Loading branch information
coleifer committed Jan 27, 2018
1 parent 8752970 commit 6c7880b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion playhouse/sqlite_ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def remove(self, *paths):
return fn.json_remove(self, *self.clean_paths(paths))

def update(self, data):
return fn.json_patch(self, data)
return fn.json_patch(self, self._value_for_insertion(data))

def json_type(self, path=None):
if path:
Expand Down

0 comments on commit 6c7880b

Please sign in to comment.